Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Queries number of bytes in read buffer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Socket 4.3 Yes Yes Yes Yes Yes
MBS( "Socket.AvailableBytes"; SocketID )   More


Parameter Description Example
SocketID The socket ID received by Socket.Connect function. $sock


Returns number or error.


Queries number of bytes in read buffer.
May not work for SSL sockets.

The buffer size of the socket is managed by the OS and can be several megabytes big if needed.
Changed in v10.4 to return error if socket is closed or disconnected instead of zero.


Query available byte count:

MBS( "Socket.AvailableBytes"; $sock )

See also

Blog Entries

Release notes

Created 11st September 2014, last changed 31st August 2020

Socket.AddMembership   -   Socket.Check

Feedback: Report problem or ask question.

MBS FileMaker Plugins