Thanks for your reply.
I have written sample code with just basic client server C++.
Now I have some confusion here. Client must be able to send some data to server via FIFO, in a structure and server must store the information. How can I do this in c++??? Do I need to serialize the info coming from client to server?? If so any third party library can be used to do this or use normal win 32 functions?? Also I don't have idea on how to do the below operations? Please suggest.
//Below is my server side code
using namespace std;
void messageReceived(messageStruct *s)
cout << "client: " << s->message << endl;
void errorOccurred(errorStruct *e)
cout << e->code << " : " << e->message << endl;
//Below is my client side code
using namespace std;
void onError(errorStruct *e)
cout << e->message << endl;
SocketClient client("127.0.0.1", 5555);
cout << ">";
/* NEW */ // You can now send streams this way
client.send(file); // The server will receive the STRING CONTENT of the file.
// But I'm working on a new version to receive the whole file directly (not as a string)
/* NEW */
Post by JJ
Post by firstname.lastname@example.org
I need to implement an interprocess communication in Windows, basic
normal desktop application using C++. The client will connect to the
server and will make different calls to it. They will communicate through
a FIFO, the code doesn't have to be multi platform, the targeted platform
is Windows. The client should be able to make synchronous and
asynchronous calls to the server. The client should be able to send and
receive different type of data to/from the server. The server needs to
register a set of functions / classes for the client to use. The client
needs to be able to create objects on the server and retrieve them, their
attributes and call methods on them.
I am beginner to developing client server applications. I am just reading
basics here and trying out few examples.
Could you please provide me some inputs here?
IMO, the code examples on MSDN is pretty clear. Or, do you have anything you
don't yet understand?
If you're not familiar with asynchronous operation, I'd suggest you learn
what things are needed, and what things are affected when working with