English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System > Coders. Scripting

 
 
Thread Tools
Old 15 March 2019, 11:22   #1
Greyspirit
Registered User

 
Join Date: Jun 2014
Location: Groton / USA
Posts: 20
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?
Greyspirit is offline  
Old 23 April 2019, 22:58   #2
Saghalie
Registered User

Saghalie's Avatar
 
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 240
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.
Saghalie is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.05603 seconds with 14 queries