Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2-way client/server communication?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I wonder if anyone can give me a tip about this. I can manage a client talking to a server no problem, but I'm having difficulties in reading strings sent from the server. I've looked at examples, but they never give details on 2 way communication. I think the problem is to do with my loops when reading on client side.

Any help apreciated.
cheers
 
The answer to this actually depends on yourself. It depends on what you would want your server to return to your client. For example if you want to send to the client a message but there a few different message type, each message type doing different things, you can add 1 more Character in front of your Message. This character will determine what message type it would be.

Another way is to send the message after the message type. There are a lot of ways you can come up with yourself too.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top