Hi,
I want to create a client server program which passes structures between them. That is, the server should pass a structure and the client should read it. Both the server and client know the contents of the structure and it's size, so they know how much to write and how much to read.
Can we pass structures through sockets?
If yes, will the reading client, read it as a set of characters (or buffer) or as structure itself? Can we associate the content read with some structure?
Any help would be highly appreciated.
Phani
I want to create a client server program which passes structures between them. That is, the server should pass a structure and the client should read it. Both the server and client know the contents of the structure and it's size, so they know how much to write and how much to read.
Can we pass structures through sockets?
If yes, will the reading client, read it as a set of characters (or buffer) or as structure itself? Can we associate the content read with some structure?
Any help would be highly appreciated.
Phani