Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple socks TCP connecting Pin
Moak22-Feb-08 4:42
Moak22-Feb-08 4:42 
GeneralRe: Simple socks TCP connecting Pin
Johpoke23-Feb-08 2:37
Johpoke23-Feb-08 2:37 
GeneralRe: Simple socks TCP connecting Pin
Moak26-Feb-08 0:08
Moak26-Feb-08 0:08 
GeneralRe: Simple socks TCP connecting Pin
Johpoke29-Feb-08 21:55
Johpoke29-Feb-08 21:55 
GeneralRe: Simple socks TCP connecting Pin
Moak29-Feb-08 22:52
Moak29-Feb-08 22:52 
QuestionRe: Simple socks TCP connecting Pin
Moak23-Feb-08 3:01
Moak23-Feb-08 3:01 
GeneralRe: Simple socks TCP connecting Pin
Johpoke23-Feb-08 3:06
Johpoke23-Feb-08 3:06 
GeneralRe: Simple socks TCP connecting Pin
Moak26-Feb-08 0:34
Moak26-Feb-08 0:34 
Hej, with this requirements I would use a design like this:

- server delivers data when a client connects or sends a (zero) byte
- server closes connection only if there's no activity for 3 seconds or network/send error
- server closes connection after a persistent connection stayed 60 seconds
- server has an upper limit of x incoming sockets (more will be ignored)

- clients stay connected and may request data repeatedly
- clients close connection in case of network/receive/send error
- clients close connection if the received data was not according to protocol
- clients automatically reconnect only if they have been sucessfully connected and identified a server in last attempt
- clients could do multiple reconnect attempts, but with a delay (e.g. 60 seconds) and an upper limit of x reconnect attempts

This should give you a fairly efficient use of TCP and clients do not flood the LAN by error. Since you are using the telnet port on your server you could also use newline as a delimiter, which allows you do test with a telnet client.


Questionproblems with cap and vfw Pin
cmos17-Feb-08 4:09
cmos17-Feb-08 4:09 
QuestionRe: problems with cap and vfw Pin
cmos17-Feb-08 5:02
cmos17-Feb-08 5:02 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 9:46
Mark Salsbery17-Feb-08 9:46 
AnswerRe: problems with cap and vfw Pin
cmos17-Feb-08 10:07
cmos17-Feb-08 10:07 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 10:21
Mark Salsbery17-Feb-08 10:21 
GeneralRe: problems with cap and vfw Pin
cmos17-Feb-08 10:59
cmos17-Feb-08 10:59 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 13:06
Mark Salsbery17-Feb-08 13:06 
GeneralChanging the height of a CstatusBar Pin
Stan the man17-Feb-08 4:05
Stan the man17-Feb-08 4:05 
GeneralRe: Changing the height of a CstatusBar Pin
Iain Clarke, Warrior Programmer18-Feb-08 3:07
Iain Clarke, Warrior Programmer18-Feb-08 3:07 
GeneralRe: Changing the height of a CstatusBar Pin
Stan the man18-Feb-08 3:19
Stan the man18-Feb-08 3:19 
QuestionHow can i use CFtpConnection object in asynchronous way ? Pin
Yanshof17-Feb-08 3:22
Yanshof17-Feb-08 3:22 
AnswerRe: How can i use CFtpConnection object in asynchronous way ? Pin
Mark Salsbery17-Feb-08 8:40
Mark Salsbery17-Feb-08 8:40 
QuestionHow to change font size of menu bar? Pin
hanlei000000000917-Feb-08 3:03
hanlei000000000917-Feb-08 3:03 
AnswerRe: How to change font size of menu bar? Pin
Rajkumar R17-Feb-08 5:53
Rajkumar R17-Feb-08 5:53 
AnswerRe: How to change font size of menu bar? Pin
Hamid_RT18-Feb-08 7:26
Hamid_RT18-Feb-08 7:26 
Generaldllimport Pin
George_George17-Feb-08 0:39
George_George17-Feb-08 0:39 
GeneralRe: dllimport Pin
Rajkumar R17-Feb-08 1:01
Rajkumar R17-Feb-08 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.