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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TServerSocket and TClientSocket

Status
Not open for further replies.

pleoplit

Programmer
Feb 13, 2009
1
GB
I have a simple server application that is using TServerSocket to listen for clients. All my clients that connect to the server app are implemented using TClientSocket. I am not sending huge amounts fo data across (no more than 5k per trip) and the app works well.

Both socket objects are set nonBlocking. I have noticed that sometimes when the client sends data to the server the fourth charcter which is always a ~ is received as a 0 (null) character. It is always the fourth character and this happens infrequently but I cannot understand why it happens

Has anyone come across this?

Also when the server sends a long string of data to the client the client ReceiveText function only reads about 1k of data.

Not sure why this is happening.

Please can anyone help?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top