Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

Component: Socket

UDP and TCP sockets.

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.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.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.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

68 functions.

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos