Hello All,
I am very new to socket programming and client server architecture. I have to write a client which will send some data to server and server will display it on its console. I am ready with both client and server but my problem is with packetizing of data --
I have structure which contains info to be sent to server. It looks like below --
typedef struct wordInfo
{
int lineNo;
int wordCnt;
struct wordInfo *next;
}wordStats;
typedef struct Info
{
char word[MAX_LENGTH];
int totoalCount;
wordStats pwHead[10];
}sharedInfo;
sharedInfo shinfo[15];
My question is how can I send this info to server so that it will interpret this info as I wanted \--