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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Socket.Close
Closes a socket.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Socket | 3.1 | Yes | Yes | Yes | Yes | Yes |
MBS( "Socket.Close"; SocketID ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by Socket.Connect function. | $sock |
Result
Returns OK or error message.
Description
Closes a socket.Examples
Disconnect socket:
If [IsEmpty($$sock)]
Else
Set Variable [$r; Value:MBS("Socket.Close"; $$Sock)]
Set Variable [$$Sock; Value:""]
End If
See also
- Socket.CloseAll
- Socket.Connect
- Socket.IsClosed
- Socket.LocalIP
- Socket.LocalPort
- Socket.Read
- Socket.Write
- Socket.WriteHex
Example Databases
- Network/HTTP Server hosted
- Network/HTTP Server local
- Network/Socket Test/Socket Test
- Network/SSL/TCP Sender SSL
- Network/SSL/TCP Socket SSL
- Network/TCP Send and Receive/TCP Receiver
- Network/TCP Send and Receive/TCP Sender
- Network/TCP Socket
Created 18th August 2014, last changed 26th January 2016
Socket.ClearNewConnectionHandler - Socket.CloseAll
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins