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
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.
| Item | Details |
|---|---|
| Socket.AcceptNewConnection Accepts a new connection and returns a new socket. | All 3.1 |
| Socket.AddMembership Adds this socket to a multicast group. | All 7.5 |
| Socket.AvailableBytes Queries number of bytes in read buffer. | All 4.3 |
| Socket.Check Performs the socket event check. | All 5.1 |
| Socket.CheckAll Checks status of all sockets. | All 5.1 |
| Socket.ClearDataAvailableHandler Clears the data available handler. | All 3.1 |
| Socket.ClearErrorHandler Clears the error handler. | All 3.1 |
| Socket.ClearNewConnectionHandler Clears the new connection handler. | All 7.2 |
| Socket.Close Closes a socket. | All 3.1 |
| Socket.CloseAll Closes all open sockets. | All 4.3 |
| Socket.Connect Connects a TCP/IP socket to the given domain/IP on the given port. | All 3.1 |
| Socket.DropMembership Removes this socket from a multicast group. | All 7.5 |
| Socket.EnableKeepAlive Enables keep alive of TCP/IP socket. | All 10.3 |
| Socket.GetBroadcast Queries whether broadcasts are allowed. | All 5.3 |
| Socket.GetMulticastInterface Queries the interface to use for multicast. | All 7.5 |
| Socket.GetMulticastLoop Queries whether multicast packets are also sent to the sending socket. | All 5.3 |
| Socket.GetMulticastTimeToLive Queries time to live for multicast data packets. | All 5.3 |
| Socket.GetTag Queries the tag value of the socket. | All 8.3 |
| Socket.GetTimeToLive Queries time to live for data packets. | All 5.3 |
| Socket.IsClosed Checks if socket got closed. | All 9.0 |
| Socket.IsListening Checks whether socket is listening. | All 9.0 |
| Socket.LastError Queries the last error code for the given socket. | All 4.3 |
| Socket.LastMessageIP Returns the IP from the last message received. | All 3.1 |
| Socket.LastMessagePort Returns the port from the last message received. | All 3.1 |
| Socket.List Liste all reference numbers for sockets. | All 9.2 |
| Socket.Listen Binds the socket to the port and starts listening. | All 3.1 |
| Socket.LocalIP Queries local IP. | All 8.0 |
| Socket.LocalPort Queries local port number. | All 8.0 |
| Socket.NewTCPSocket Creates a new TCP Socket. | All 3.1 |
| Socket.NewUDPSocket Creates a new UDP Socket. | All 3.1 |
| Socket.Peek Peeks bytes from socket and returns them as text. | All 3.1 |
| Socket.PeekAll Peeks bytes from socket and returns them as text. | All 4.3 |
| Socket.PeekAllHex Peeks from socket and returns them hex encoded. | All 4.3 |
| Socket.PeekHex Peeks from socket and returns them hex encoded. | All 3.1 |
| Socket.Read Reads bytes from socket and returns them as text. | All 3.1 |
| Socket.ReadAll Reads bytes from socket and returns them as text. | All 4.3 |
| Socket.ReadAllHex Reads bytes from socket and returns them hex encoded. | All 4.3 |
| Socket.ReadHex Reads bytes from socket and returns them hex encoded. | All 3.1 |
| Socket.ReadLine Reads a line of data from socket and returns them as text. | All 4.3 |
| Socket.ReadLineHex Reads a line of data from socket and returns them as text. | All 4.3 |
| Socket.ReadMLLP Reads bytes from socket and returns them as text. | All 3.1 |
| Socket.RemoteIP Returns IP of the remote socket. | All 3.1 |
| Socket.RemotePort Returns port of the socket on the other side. | All 3.1 |
| Socket.SSL.Accept Wait for a TLS/SSL client to initiate a TLS/SSL handshake. | All 3.5 |
| Socket.SSL.Connect Initiate the TLS/SSL handshake with an TLS/SSL server. | All 3.5 |
| Socket.SSL.GetMethod Queries the SSL method. | All 3.5 |
| Socket.SSL.Initialize Initializes a SSL connection. | All 3.5 |
| Socket.SSL.Prepare First step in SSL initialization. | All 3.5 |
| Socket.SSL.SetMethod Sets the SSL method for this socket. | All 3.5 |
| Socket.SSL.UseCertificateFile Defines to use a certificate key file for this SSL socket. | All 3.5 |
| Socket.SSL.UsePrivateKeyFile Defines to use a private key file for this SSL socket. | All 3.5 |
| Socket.SendMessage Sends an UDP data message. | All 3.1 |
| Socket.SendMessageHex Sends an UDP data message. | All 3.1 |
| Socket.SetBroadcast Enables or disables whether broadcasts are allowed. | All 5.3 |
| Socket.SetDataAvailableEvaluate Sets the data available evaluation for this socket. | All 6.2 |
| Socket.SetDataAvailableHandler Sets the data available handler for this socket. | All 3.1 |
| Socket.SetDataAvailableURL Sets the URL to query when data is available. | All 6.5 |
| Socket.SetErrorEvaluate Sets the error expression for this socket. | All 6.2 |
| Socket.SetErrorHandler Sets the error handler for this socket. | All 3.1 |
| Socket.SetErrorURL Sets the URL to query when error happens. | All 6.5 |
| Socket.SetMulticastInterface Sets the interface to use for multicast. | All 7.5 |
| Socket.SetMulticastLoop Sets whether multicast packets are also sent to the sending socket. | All 5.3 |
| Socket.SetMulticastTimeToLive Sets time to live for multicast data packets. | All 5.3 |
| Socket.SetNewConnectionEvaluate Sets the new connection expression for this socket. | All 6.2 |
| Socket.SetNewConnectionHandler Sets the new connection handler for this socket. | All 3.1 |
| Socket.SetNewConnectionURL Sets the URL to query when new connection is received. | All 6.5 |
| Socket.SetTag Sets the tag of the socket. | All 8.3 |
| Socket.SetTimeToLive Sets time to live for data packets. | All 5.3 |
| Socket.Write Writes text to the socket. | All 3.1 |
| Socket.WriteByte Writes a single byte to the socket. | All 3.1 |
| Socket.WriteHex Writes text to the socket. | All 3.1 |
| Socket.WriteMLLP Writes text to the socket. | All 3.1 |
72 functions.
Release notes
- 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.
- Version 8.3
- Added Socket.GetTag and Socket.SetTag.
- Improved Socket handling to better get IPv4 and IPv6 handled in various socket functions.
- Updated code for Socket.Connect, ServerSocket.SendQuery, SSH.Connect and SendCommand to use new unified socket connection code, which uses IPv4 and IPv6, queries DNS if needed and tries several IPs if needed.
- Version 8.0
- Added Socket.LocalPort and Socket.LocalIP functions.
- Version 7.5
- Added Socket.AddMembership and Socket.DropMembership.
- Added Socket.GetMulticastInterface and Socket.SetMulticastInterface functions for UDP Sockets.
- Version 7.2
- Added ProtocolPreference parameter to SSH.Connect and Socket.Connect to request IPv4 or IPv6.
Blog Entries
- Neues MBS FileMaker Plugin 10.4
- MBS FileMaker Plugin 10.4 - More than 6300 Functions In One Plugin
- MBS FileMaker Plugin, version 10.4pr7
- Socket changes for MBS FileMaker Plugin
- Combine MBS functions to automate processes in FileMaker
- Neues MBS FileMaker Plugin 8.3
- MBS FileMaker Plugin, version 8.3pr3
- MBS FileMaker Plugin 7.5 - Über 5000 Funktionen in einem Plugin
- MBS FileMaker Plugin 7.5 - More than 5000 Functions In One Plugin
- [ANN] MBS FileMaker Plugin 5.3 for OS X/Windows
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/UDP/UDP Broadcast
- Network/UDP/UDP Receiver
- Network/UDP/UDP Sender
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins