Socket.CheckAll
---------------

Checks status of all sockets.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Socket](component_Socket.md) | [5.1](newinversion51.md) | ✅ 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

- [Socket.Check](SocketCheck.md)
- [Socket.CloseAll](SocketCloseAll.md)
- [Socket.PeekAll](SocketPeekAll.md)
- [Socket.ReadAll](SocketReadAll.md)

### Example Databases

- [Network/HTTP Server hosted](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/HTTP%20Server%20hosted.shtml#5ScriptAnchor_)

This function checks for a license.

Created 29th March 2015 , last changed 29th November 2018

  
[Socket.Check](SocketCheck.md) - [Socket.ClearDataAvailableHandler](SocketClearDataAvailableHandler.md)

[HTML Version](SocketCheckAll.shtml)