WINSOCK ACCEPT

You can use this command to accept connection requests that a channel has recieved while it is in listen mode. The listen channel will remain in listen mode, while a new channel is being created that will then take over the connection. A Dword is returned, used to identify the new channel. The argument passed is the listen channel that has recieved a connection request.
To detect a connection request you need to call WINSOCK REFRESH CHANNEL, and then check if there is data on the channel waiting for you with WINSOCK CHANNEL DATA WAITING(). There is no real data, it just indicates that someone whished to connect. So you don't need to read it.
The accept call will remove the data in the listen channel (of course there may other connection requests be pending, which will not be removed). (TO check for further connection requests you just perform a WINSOCK REFRESH CHANNEL again and do the same as before...)
Accept and Listen is only used with TCP sockets, as UDP does not need a connection to be established to exchange data.

SYNTAX
Return Dword=WINSOCK ACCEPT(listen_channel as dword)

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2