Hi,
I am writing a IOCP clientand server application, in which the server
application will only be ran on XP,2000 etc, and the client application will
also be ran on XP,2000 etc.
The client and server application both share the same header file which
includes:
typedef struct{
double MinVolt,MaxVolt;
double MinRead,MaxRead;
double FullMin,FullMax;
}AnalogueScalingStruct;
typedef struct{
char StationName[42];
int Days,Hours,Minutes;
int HeartBeat;
BOOL TEOMEnable[8];
char Station[8][10];
char Channel[8][10];
char Register[8][10];
char Units[8][22];
BOOL AnEnable[8];
int AnType[8];
char AnUnits[8][22];
AnalogueScalingStruct AnScale[8];
int InType[4];
BOOL InEnable[4];
char InUnits[4][22];
}StationSetup;
The client application fills the StationSetup structure and send it to the
server application using the sizeof function as follows:
StationSetup Setup;
ToServer((PBYTE)&Setup,sizeof(StationSetup) ); // just send the whole
structure to the ser
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.