Few days ago I finished making my own (quite primitive) chat server with SocketServer. I haven't had any problems with it apart from the designing of the chat protocol: I made a very sketchy protocol for messaging. The client just sent unix-like commands to the server to do certain opperations:
connect <name> - connects the client to the chat room with this name
send <message> - pretty straight-foreward
who - who's online
etc

Yesterday, I found out about this cool library called xmlrpc. It looks great, but I also want your suggestions.

What's the best, most flexible and easy to use protocol I could use for client/server communication.

Sincerely, n.utiu.

Recommended Answers

All 2 Replies

It depends a lot of the application, and all of that.

But maybe a simple http server or json server in a peer to peer configuration should serve the task pretty good.

I''ve never tried xmlrpc servers, since I never felt the need to.

Cheers and Happy coding

It depends a lot of the application, and all of that.

But maybe a simple http server or json server in a peer to peer configuration should serve the task pretty good.

I''ve never tried xmlrpc servers, since I never felt the need to.

Cheers and Happy coding

Well I haven't used json yet, but I'll give it a try, looks simple. Thanks for the suggestions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.