Wait for Socket Activity
count, rxt, txt, ext = socket.select(ms, rxt, [txt], [ext])
Wait for activity on the set of socket objects, waiting for up to ms
.
Parameter | Type | Description |
---|---|---|
ms |
integer | Timeout |
rxt |
table | Table of socket objects to check for receive activity |
txt |
table | Table of socket objects to check for transmit activity |
ext |
table | Table of socket objects to check for exception activity |
Returns | Type | Description |
---|---|---|
count |
integer | number of sockets that match. 0 on timeout. |
rxt |
table | Table of socket objects for receive activity |
txt |
table | Table of socket objects for transmit activity |
ext |
table | Table of socket objects for exception activity |
Use this call to efficiently handle activity on multiple sockets at once.