// Structure for multicasting receive data on the network.
#define NET_MULTICAST_PAYLOAD 1024
typedef struct {
char buf[NET_MULTICAST_PAYLOAD];
double passband_center;
float userx_freq;
unsigned int block_no;
unsigned char userx_no;
char passband_direction;
} NET_RX_STRUCT;
Very interesting ! A couple of observations:
- I would want a timestamp in there somewhere. It might be derived
from block_no, but why not make it explicit ?
- how is the sampling rate communicated ?
- using float/double makes it much harder for dedicated hardware
receivers to act as server.
- if you are not doing so already, please please _please_ use the
functions htons() / ntohs() and friends to convert between host byte
order and network byte order (or forever determine that linrad
communicates with either little endian (IA32) or big endian (Alpha,
PowerPC etc) byte order. I would want to be able to use a PC as the
server and my PowerBook as the client, for instance.
JDB.
--
LART. 250 MIPS under one Watt. Free hardware design files.
http://www.lartmaker.nl/
#############################################################
This message is sent to you because you are subscribed to
the mailing list <linrad@antennspecialisten.se>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>