[Implemented] Network-Client- detect Server-Disconnect.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

[Implemented] Network-Client- detect Server-Disconnect.

Post by GPI »

At the moment the client can't check, if the server disconnect the connection. This would be nice.

Code: Select all

  if NetworkClientEvent(ConnectionID)=4
    debug "Server has disconnect"
  endif
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Ref: viewtopic.php?p=68116&highlight=network#68116

This was mentioned before with no mention of completing the pb network library at that time. There is, however, a link to a hack in that thread.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Thanks. will help now, but a clientevent() would be nicer.
Post Reply