Platforms to show: All Mac Windows Linux Cross-Platform

Back to RAWSocketMBS class.

RAWSocketMBS.AddressFamily as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 18.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The address family of the socket.

This is either RAWSocketMBS.AddressFamilyINet (2) for IPv4 or RAWSocketMBS.AddressFamilyINet6 (Mac 30, Windows 23 and Linux 10) for IPv6.
(Read and Write property)

RAWSocketMBS.AvailableBytes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns number of bytes available for reading.

Lasterror is set.
(Read only property)

RAWSocketMBS.Broadcast as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether broadcasts are allowed.

Set to true before sending a broadcast message.
Internally this uses SOL_SOCKET/SO_BROADCAST option.
Lasterror is set.
(Read and Write property)

RAWSocketMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal socket handle.

(Read and Write property)

RAWSocketMBS.IPHeaderIncluded as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the OS provides IP header or you.

Default is false.
Set to true when you include IP header in data.
(Read and Write property)

RAWSocketMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code.

Platform dependent.
(Read and Write property)

RAWSocketMBS.LocalIP as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries local IP.

Can be 0.0.0.0 if unknown.
May only be set if connected or binded.
Lasterror is set.
(Read only property)

RAWSocketMBS.LocalPort as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries local port.

Lasterror is set.
Can be -1 if unknown.
(Read only property)

RAWSocketMBS.Protocol as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The socket protocol.

The value from constructor.
(Read and Write property)

RAWSocketMBS.ReceiveBufferSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the receiving buffer size.

The buffer size may be increased for high-volume connections, or may be decreased to limit the possible backlog of incoming data. The system places an absolute limit on these values.
Internally this uses SOL_SOCKET/SO_RCVBUF option.
Lasterror is set.
(Read and Write property)

RAWSocketMBS.ReuseAddress as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Allows reuse of same port.

Internally this uses SOL_SOCKET/SO_REUSEADDR option.

see also
http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

Lasterror is set.
(Read and Write property)

RAWSocketMBS.ReusePort as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Allow reuse of same port and IP.

Internally this uses SOL_SOCKET/SO_REUSEPORT option.
On Windows, this is not supported, so this property sets ReuseAddress.
Lasterror is set.
(Read and Write property)

RAWSocketMBS.SendBufferSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The sending buffer size.

The buffer size may be increased for high-volume connections, or may be decreased to limit the possible backlog of incoming data. The system places an absolute limit on these values.
Internally this uses SOL_SOCKET/SO_SNDBUF option.
Lasterror is set.
(Read and Write property)

RAWSocketMBS.SocketError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The native socket error.

Internally this uses SOL_SOCKET/SO_ERROR option.
Lasterror is set.
(Read only property)

RAWSocketMBS.SocketType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The socket type.

The value from constructor.
(Read and Write property)

The items on this page are in the following plugins: MBS Network Plugin.


The biggest plugin in space...