15 March 2019, 11:22 | #1 |
Registered User
Join Date: Jun 2014
Location: Groton / USA
Posts: 37
|
RXSocket Detect Disconnect?
I'm working on trying to tie the console to TCP to fake an rlogin connection. Using RXSocket.library, I did manage to get that part working but for the life of me I cannot figure out how to detect if the remote server disconnects (i.e. logoff, loss of internet, remote host goes offline, etc).
Any ideas? |
23 April 2019, 22:58 | #2 |
Registered User
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 374
|
does the server send a "request" packet to see if the line is still alive? If so, you can have
your program check periodically for that packet. Or you can periodically send a packet that the server responds to. If no packet gets received after a certain amount of time then disconnect and reconnect. Have the program do that of course. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Detect RTG | arcanist | Coders. General | 2 | 03 March 2019 19:37 |
Detect AGA | Steffest | Coders. C/C++ | 2 | 22 October 2017 12:20 |
Disconnect from shell | patrik | Coders. System | 5 | 08 March 2016 20:09 |
Detect NTSC or PAL | highpuff | Coders. Asm / Hardware | 14 | 18 March 2015 17:23 |
How to detect WinUAE | demolition | support.Apps | 13 | 13 November 2012 11:21 |
|
|