Difference between revisions of "MC-Basic:ACCEPT"

From SoftMC-Wiki
Jump to: navigation, search
m
Line 44: Line 44:
 
Cannot accept connection
 
Cannot accept connection
  
|EXAMPLE=
+
|EXAMPLES=
 
Accept(#1,65456)
 
Accept(#1,65456)
  
|EXAMPLE=
+
 
 
For Versions 4.0.14 and higher:
 
For Versions 4.0.14 and higher:
  

Revision as of 13:05, 16 March 2014

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