Code: Select all
ConnectionID = OpenNetworkConnection("127.0.0.1", Port)
If ConnectionID
SendNetworkString(ConnectionID,CLIENT_VALIDATION_STRING$)
; Here is where I need the help. If the server dies before I
; receive my data, how do I know? Can I set a
; timeout somehow, or is there a Linux thing I can check?
RESULT=ReceiveNetworkData(ConnectionID, *Buffer, 100)
F00$=PeekS(*Buffer)
Else
End
EndIf
Alex

