Difference between revisions of "MC-Basic:ACCEPT"
m |
m |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|EXAMPLES= | |EXAMPLES= | ||
Accept(#1,65456) | Accept(#1,65456) | ||
− | |||
For Versions 4.0.14 and higher: | For Versions 4.0.14 and higher: |
Revision as of 13:05, 16 March 2014
|EXAMPLES= Accept(#1,65456)
For Versions 4.0.14 and higher:
Dim X as long = 2
OpenSocket Options=1 as #1 ‘explicit socket open for listening for port
while TRUE
OpenSocket Options=1 as #X ‘ explicit socket open for listening accepting a
‘ new connection
Accept(#1, #X, 6002)
X=X+1
End while
Where:
- ListeningDevice is permanent and bound to the port. It can be closed only when listener is terminated.
- AcceptingDevice[x] is created each time a listener creates new server task.
- Application cannot close AcceptingDevice[x] when it is accepting.
|SEE ALSO=
}}