MC-Basic:ACCEPT

From SoftMC-Wiki
Revision as of 13:05, 16 March 2014 by Lisa (talk | contribs)
Jump to: navigation, search

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

See Also