Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Socket.CheckAll
Checks status of all sockets.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Socket.CheckAll" )
Parameters
none
Result
Returns list or error.
Description
Checks status of all sockets.Returns a list of sockets and what to do. The list is always build using a reference number of a socket followed by an entry with the status. Status can be error, read, write, or accept. So when you get a socket with read status, you can read data from it. With write status you can write some data to it. With accept, you can start a new connection with the incoming request. In case of error status, the plugin closes the socket automatically.
Returns empty text if there is nothing to do.
See also
Example Databases
This function checks for a license.
Created 29th March 2015, last changed 29th November 2018