MC-Basic:ACCEPT
Binds a TCP socket to specific port and accepts a connection. Listens to a TCP socket. The <port number> defines TCP port
Syntax
Accept( {#<ListeningDevice number>} , #<Accepting device number>, <port number>)
Type
<Listeningdevice number> : Long
<Acceptingdevice number> : Long
<port number> : Long
Range
< Listening device number> : 1 to 255
< Accepting device number> : 1 to 255
<port number> : 6000 through 6999
Scope
Task
Limitations
Task only
Errors Invalid socket
Cannot accept connection