SOCKETLISTEN

Top  Previous  Next

Action

Opens a socket in server(listen) mode.

 

 

Syntax

SOCKETLISTEN socket

 

 

Remarks

Socket

The socket number you want to use for the server in the range of 0 -3.

 

The socket will listen to the port you specified with the GetSocket function.

You can listen to a maximum of 4 sockets at the same time.

 

After the connection is closed by either the client or the server, a new connection need to be created and the SocketListen statement must be used again.

 

 

See also

CONFIG TCPIP, GETSOCKET , SOCKETCONNECT, SOCKETSTAT , TCPWRITE, TCPWRITESTR, TCPREAD, CLOSESOCKET

 

 

Example

See SOCKETCONNECT example