Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Socket.IsListening
Checks whether socket is listening.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 9.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Socket.IsListening"; SocketID ) More
Parameters
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
Result
Returns 1, 0 or error.
Description
Checks whether socket is listening.Returns 1 if listening, e.g. Socket.Listen was called.
Examples
Check listening state:
If [ MBS( "Socket.IsListening"; $socket ) ]
Show Custom Dialog [ "The socket is listening" ]
End If
See also
Release notes
- Version 9.0
- Added Socket.IsClosed and Socket.IsListening functions.
Blog Entries
This function is free to use.
Created 29th November 2018, last changed 27th August 2023