Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Component: Socket
UDP and TCP sockets.
For higher level TCP/IP sockets with TLS support, please use CURL functions with CURL.SendData and CURL.ReceiveData.
Please check WebHook functions for receiving http requests.
Version | macOS | Windows | Linux | Server | iOS SDK |
3.1 / 11.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ 92% | ✅ Yes |
Item | Details | Server |
---|---|---|
Socket.AcceptNewConnection Accepts a new connection and returns a new socket. | All 3.1 |
✅ Server |
Socket.AddMembership Adds this socket to a multicast group. | All 7.5 |
✅ Server |
Socket.AvailableBytes Queries number of bytes in read buffer. | All 4.3 |
✅ Server |
Socket.Check Performs the socket event check. | All 5.1 |
✅ Server |
Socket.CheckAll Checks status of all sockets. | All 5.1 |
✅ Server |
Socket.ClearDataAvailableHandler Clears the data available handler. | All 3.1 |
✅ Server |
Socket.ClearErrorHandler Clears the error handler. | All 3.1 |
✅ Server |
Socket.ClearNewConnectionHandler Clears the new connection handler. | All 7.2 |
✅ Server |
Socket.Close Closes a socket. | All 3.1 |
✅ Server |
Socket.CloseAll Closes all open sockets. | All 4.3 |
✅ Server |
Socket.Connect Connects a TCP/IP socket to the given domain/IP on the given port. | All 3.1 |
✅ Server |
Socket.DropMembership Removes this socket from a multicast group. | All 7.5 |
✅ Server |
Socket.EnableKeepAlive Enables keep alive of TCP/IP socket. | All 10.3 |
✅ Server |
Socket.GetBroadcast Queries whether broadcasts are allowed. | All 5.3 |
✅ Server |
Socket.GetMulticastInterface Queries the interface to use for multicast. | All 7.5 |
✅ Server |
Socket.GetMulticastLoop Queries whether multicast packets are also sent to the sending socket. | All 5.3 |
✅ Server |
Socket.GetMulticastTimeToLive Queries time to live for multicast data packets. | All 5.3 |
✅ Server |
Socket.GetReceiveBufferSize Query receive buffer size. | All 11.1 |
✅ Server |
Socket.GetSendBufferSize Query send buffer size. | All 11.1 |
✅ Server |
Socket.GetTag Queries the tag value of the socket. | All 8.3 |
✅ Server |
Socket.GetTimeToLive Queries time to live for data packets. | All 5.3 |
✅ Server |
Socket.IsClosed Checks if socket got closed. | All 9.0 |
✅ Server |
Socket.IsListening Checks whether socket is listening. | All 9.0 |
✅ Server |
Socket.LastError Queries the last error code for the given socket. | All 4.3 |
✅ Server |
Socket.LastMessageIP Returns the IP from the last message received. | All 3.1 |
✅ Server |
Socket.LastMessagePort Returns the port from the last message received. | All 3.1 |
✅ Server |
Socket.List Liste all reference numbers for sockets. | All 9.2 |
✅ Server |
Socket.Listen Binds the socket to the port and starts listening. | All 3.1 |
✅ Server |
Socket.LocalIP Queries local IP. | All 8.0 |
✅ Server |
Socket.LocalPort Queries local port number. | All 8.0 |
✅ Server |
Socket.NewTCPSocket Creates a new TCP Socket. | All 3.1 |
✅ Server |
Socket.NewUDPSocket Creates a new UDP Socket. | All 3.1 |
✅ Server |
Socket.Peek Peeks bytes from socket and returns them as text. | All 3.1 |
✅ Server |
Socket.PeekAll Peeks bytes from socket and returns them as text. | All 4.3 |
✅ Server |
Socket.PeekAllHex Peeks from socket and returns them hex encoded. | All 4.3 |
✅ Server |
Socket.PeekHex Peeks from socket and returns them hex encoded. | All 3.1 |
✅ Server |
Socket.Read Reads bytes from socket and returns them as text. | All 3.1 |
✅ Server |
Socket.ReadAll Reads bytes from socket and returns them as text. | All 4.3 |
✅ Server |
Socket.ReadAllHex Reads bytes from socket and returns them hex encoded. | All 4.3 |
✅ Server |
Socket.ReadHex Reads bytes from socket and returns them hex encoded. | All 3.1 |
✅ Server |
Socket.ReadLine Reads a line of data from socket and returns them as text. | All 4.3 |
✅ Server |
Socket.ReadLineHex Reads a line of data from socket and returns them as text. | All 4.3 |
✅ Server |
Socket.ReadMLLP Reads bytes from socket and returns them as text. | All 3.1 |
✅ Server |
Socket.RemoteIP Returns IP of the remote socket. | All 3.1 |
✅ Server |
Socket.RemotePort Returns port of the socket on the other side. | All 3.1 |
✅ Server |
Socket.SSL.Accept Wait for a TLS/SSL client to initiate a TLS/SSL handshake. | All 3.5 |
✅ Server |
Socket.SSL.Connect Initiate the TLS/SSL handshake with an TLS/SSL server. | All 3.5 |
✅ Server |
Socket.SSL.GetMethod Queries the SSL method. | All 3.5 |
✅ Server |
Socket.SSL.Initialize Initializes a SSL connection. | All 3.5 |
✅ Server |
Socket.SSL.Prepare First step in SSL initialization. | All 3.5 |
✅ Server |
Socket.SSL.SetMethod Sets the SSL method for this socket. | All 3.5 |
✅ Server |
Socket.SSL.UseCertificateFile Defines to use a certificate key file for this SSL socket. | All 3.5 |
✅ Server |
Socket.SSL.UsePrivateKeyFile Defines to use a private key file for this SSL socket. | All 3.5 |
✅ Server |
Socket.SendMessage Sends an UDP data message. | All 3.1 |
✅ Server |
Socket.SendMessageHex Sends an UDP data message. | All 3.1 |
✅ Server |
Socket.SetBroadcast Enables or disables whether broadcasts are allowed. | All 5.3 |
✅ Server |
Socket.SetDataAvailableEvaluate Sets the data available evaluation for this socket. | All 6.2 |
❌ Server |
Socket.SetDataAvailableHandler Sets the data available handler for this socket. | All 3.1 |
❌ Server |
Socket.SetDataAvailableURL Sets the URL to query when data is available. | All 6.5 |
✅ Server |
Socket.SetErrorEvaluate Sets the error expression for this socket. | All 6.2 |
❌ Server |
Socket.SetErrorHandler Sets the error handler for this socket. | All 3.1 |
❌ Server |
Socket.SetErrorURL Sets the URL to query when error happens. | All 6.5 |
✅ Server |
Socket.SetMulticastInterface Sets the interface to use for multicast. | All 7.5 |
✅ Server |
Socket.SetMulticastLoop Sets whether multicast packets are also sent to the sending socket. | All 5.3 |
✅ Server |
Socket.SetMulticastTimeToLive Sets time to live for multicast data packets. | All 5.3 |
✅ Server |
Socket.SetNewConnectionEvaluate Sets the new connection expression for this socket. | All 6.2 |
❌ Server |
Socket.SetNewConnectionHandler Sets the new connection handler for this socket. | All 3.1 |
❌ Server |
Socket.SetNewConnectionURL Sets the URL to query when new connection is received. | All 6.5 |
✅ Server |
Socket.SetReceiveBufferSize Sets receive buffer size. | All 11.1 |
✅ Server |
Socket.SetSendBufferSize Sets send buffer size. | All 11.1 |
✅ Server |
Socket.SetTag Sets the tag of the socket. | All 8.3 |
✅ Server |
Socket.SetTimeToLive Sets time to live for data packets. | All 5.3 |
✅ Server |
Socket.Write Writes text to the socket. | All 3.1 |
✅ Server |
Socket.WriteByte Writes a single byte to the socket. | All 3.1 |
✅ Server |
Socket.WriteHex Writes text to the socket. | All 3.1 |
✅ Server |
Socket.WriteMLLP Writes text to the socket. | All 3.1 |
✅ Server |
76 functions shown.
These functions require a license (67%).
Release notes
- Version 14.1
- Fixed a problem with Socket.SendMessageHex function.
- Version 11.1
- Added new socket functions to set send/receive buffer size: Socket.GetReceiveBufferSize, Socket.GetSendBufferSize, Socket.SetReceiveBufferSize, Socket.SetSendBufferSize.
- Version 10.4
- Fixed Socket.Write functions to properly return error instead of -1 in case of errors.
- Improved Socket functions to better return errors. Socket.AvailableBytes, Socket.Write or Socket.Read functions now return an error when socket is disconnected or otherwise broken.
- Version 10.3
- Added Socket.EnableKeepAlive function.
- Version 10.1
- Changed Socket.NewTCPSocket to mark sockets to accept IPv4 connections on IPv6 sockets.
- Version 9.2
- Added Socket.List function.
- Version 9.1
- Added backlog parameter for Socket.Listen.
- Version 9.0
- Added Socket.IsClosed and Socket.IsListening functions.
- Version 8.4
- Added PreferIPv6 option to Socket.NewTCPSocket to prefer either IPv4 or IPv6.
Blog Entries
- Connect to an external database server in FileMaker
- RFID reader for use with FileMaker
- MBS FileMaker Plugin, version 11.1pr1
- MBS FileMaker Plugin 10.4 - More than 6300 Functions In One Plugin
- Socket changes for MBS FileMaker Plugin
- Combine MBS functions to automate processes in FileMaker
- MBS FileMaker Plugin 7.5 - More than 5000 Functions In One Plugin
- [ANN] MBS FileMaker Plugin 5.3 for OS X/Windows
- MBS FileMaker Plugin 3.5 for OS X/Windows - More than 2100 Functions In One Plugin
- MBS FileMaker Plugin 3.2 for OS X/Windows