forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSIPP.DLL - TCP server/client question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Sep 20, 2002 2:19 pm    Post subject: VDSIPP.DLL - TCP server/client question Reply with quote

Question Can anyone shed any light on why some TCP messages sent between server and client would arrive without any data?

For example:
- the client sends authentication info to the server
- the server recieves the info and replys with good guy/bad guy message
- the ONMESSAGE event is triggered but the message is blank

This even happens when testing on the loopback of my NIC so I know it's not losing the data on the network. It seems to be pretty random because it doesn't ever happen with specific messages and it doesn't happen very often.

Question How would one implement some redundancy so if a message is not recieved correctly, the server or client would resend the message?
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Sep 20, 2002 2:34 pm    Post subject: Reply with quote

I would implement a successive numeric message ID system. Both client
and server would send a numeric id with each and every communication.
Maybe an 8 or 9 digit number starting from 00000001 and increment by
one with each communication.

Both client and server keep track of the numbers, and if a number is
missing, then you know a message has been lost.

When the numbers have reached 99999999 then start the numbers over
again.

-Garrett
Back to top
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Sep 20, 2002 4:22 pm    Post subject: Reply with quote

Hey Garret!

That would probably work well. And for multiple connections I could include a connection identifier in the message ID. Thanks!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group