Click here to Skip to main content
15,893,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt19-Jun-18 2:52
professionalJochen Arndt19-Jun-18 2:52 
This can't be answered or solved without seeing the related code and knowing about the used protocol and data flow.

However, here are some tips:

With WAN communication, packets might get lost and resend. Packets might arrive in a different order. If order matters, the sequence number of the raw packets can be used or the protocol must provide a similar field (which might be an existing time stamp with adequate resolution).

The receiving threads must be event driven (your post might indicate that they are timer driven).

Check all function return codes and check for timeouts (detect dropped connections). Doing so might solve the problem of the hanging client (possible scenario: client waits for an event or state that is never occuring).

When encountering problems by code, provide methods to gracefully drop a connection so that you can restart. This should be done on both sides which requires the client to be able to send to the server (keep alive messages and close requests).
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu19-Jun-18 3:44
manoharbalu19-Jun-18 3:44 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt19-Jun-18 4:33
professionalJochen Arndt19-Jun-18 4:33 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu20-Jun-18 19:02
manoharbalu20-Jun-18 19:02 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt20-Jun-18 21:04
professionalJochen Arndt20-Jun-18 21:04 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 0:55
manoharbalu21-Jun-18 0:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 1:31
professionalJochen Arndt21-Jun-18 1:31 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 19:36
manoharbalu21-Jun-18 19:36 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Victor Nijegorodov21-Jun-18 20:35
Victor Nijegorodov21-Jun-18 20:35 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 20:55
professionalJochen Arndt21-Jun-18 20:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu25-Jun-18 19:04
manoharbalu25-Jun-18 19:04 
AnswerRe: TCP/IP Socket connectivity issue in Internet Pin
jschell23-Jun-18 4:52
jschell23-Jun-18 4:52 
Questioninstalled apps Pin
john563217-Jun-18 20:22
john563217-Jun-18 20:22 
AnswerRe: installed apps Pin
Victor Nijegorodov17-Jun-18 20:45
Victor Nijegorodov17-Jun-18 20:45 
GeneralRe: installed apps Pin
john563217-Jun-18 20:53
john563217-Jun-18 20:53 
AnswerRe: installed apps Pin
User 742933817-Jun-18 21:33
professionalUser 742933817-Jun-18 21:33 
GeneralRe: installed apps Pin
john563217-Jun-18 22:58
john563217-Jun-18 22:58 
AnswerRe: installed apps Pin
User 742933817-Jun-18 23:04
professionalUser 742933817-Jun-18 23:04 
QuestionChange Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath14-Jun-18 2:13
Gopi Nath14-Jun-18 2:13 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933817-Jun-18 23:37
professionalUser 742933817-Jun-18 23:37 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 1:25
Gopi Nath18-Jun-18 1:25 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933818-Jun-18 1:28
professionalUser 742933818-Jun-18 1:28 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 1:42
Gopi Nath18-Jun-18 1:42 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Richard Andrew x6420-Jun-18 14:23
professionalRichard Andrew x6420-Jun-18 14:23 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933820-Jun-18 19:40
professionalUser 742933820-Jun-18 19:40 

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.