Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Thanks for your reply.

In the client side:
I used OnReceive() and a timer variable which is reset to zero in that function. In a separate thread of 1 second frequency, I increment the timer variable to one. So every one second the timer variable is incremented but it is reset to zero in the OnReceive since the data is received in OnReceive() which is sent by the server every second. When the timer variable exceeds 30 counts, it is elapsed. When the timer is elapsed, I closed the client socket using shutdown and deleted the socket.
But When I tested the Server and the client, the server hangs after some 2 hours. Previously my client got hanged or lost connection.
Any suggestion, why the server is getting hanged this time?
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 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 20:22
Gopi Nath20-Jun-18 20:22 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 20:19
Gopi Nath20-Jun-18 20:19 
Questioncreate_task with asynchronous unwrapping PPL Pin
Daniel Ramnath12-Jun-18 8:58
Daniel Ramnath12-Jun-18 8:58 

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.