.num Property
Function: |
Sets/returns the number of currently selected socket. |
Type: |
Byte |
Value Range: |
The value of this property won't exceed sock.numofsock - 1 (even if you attempt to set higher value). Default = 0 (socket #0 selected). |
See Also: |
--- |
Details
Sockets are enumerated from 0. Most other properties and methods of the sock. object relate to the socket selected through this property. Note that socket-related events such as on_sock_data_arrival change the currently selected socket!