|
-
Jul 18th, 2007, 02:18 AM
#20
Thread Starter
Fanatic Member
Re: [2005] TCPListener, Threading, Error.
The split command on line 107 of the most recent server code snipet showing in the post just before your post.
[EDIT]
Good night, i'm going to bed now, the happiness in me is overwhelmed by the lack of sleep.
[EDIT 2]
Also, I know that what is happening is, while reading, I am reading the length of the read BUFFER, not the length of the read DATA. I don't know how to gather the length of the read DATA. I tried changing the tcpclient.SendBuffer on the User (client) but I believe because the Receive buffer is still 8092 or something it ends up getting a 8093 lenth byte array/string.
So if you find out how to check the Receive read DATA let me know.
Other then the way I am currently using (flagging the end of the messege).
Other then sending the length of the messege with the messege, before the messege, (and useing the mid fucntion still).
Last edited by rack; Jul 18th, 2007 at 02:23 AM.
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|