Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

UDPSocketMBS.AddMembership(MultiAddress as string, InterfaceAddress as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Adds this socket to a multicast group.
Notes:
Internally this uses IPPROTO_IP/IP_ADD_MEMBERSHIP option.
Lasterror is set.

MultiAddress: The IPv4 address of the group to join.
InterfaceAddress: The IPv4 address of the network interface to use. Can be empty for any interface.

Feedback, Comments & Corrections

UDPSocketMBS.Bind(Port as Integer, IP as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Binds the socket to the given port.
Notes:
If IP is not empty, you can bind the socket to only the given network interface with that IPv4.
Set ReuseAddress to bind to an address which already a socket is bound to.
Lasterror is set.

Feedback, Comments & Corrections

UDPSocketMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: The constructor.

Feedback, Comments & Corrections

UDPSocketMBS.Destructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: The destructor.
Notes: Closes the socket.

Feedback, Comments & Corrections

UDPSocketMBS.DropMembership(MultiAddress as string, InterfaceAddress as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Removes this socket from a multicast group.
Notes:
Internally this uses IPPROTO_IP/IP_DROP_MEMBERSHIP option.
Lasterror is set.

MultiAddress: The IPv4 address of the group to join.
InterfaceAddress: The IPv4 address of the network interface to use. Can be empty for any interface.

Feedback, Comments & Corrections

UDPSocketMBS.Poll
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 18.0 Yes Yes Yes Yes No
Function: Polls for activity.
Notes:
Calls events if needed.
This is called automatically via timer by the plugin.

Feedback, Comments & Corrections

UDPSocketMBS.Read(peek as boolean = false) as DatagramMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Reads a datagram.
Notes:
If peek is true, the data is not removed from read buffer.
On error returns nil.

Feedback, Comments & Corrections

UDPSocketMBS.SendMessage(Data as DatagramMBS) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Sends a datagram.
Notes:
Please specify with port and address of datagram where package is sent to.
Returns number of bytes sent.
Lasterror is set.

See also:

Feedback, Comments & Corrections

UDPSocketMBS.SendMessage(Data as MemoryBlock, IP as String, Port as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Sends a datagram.
Notes:
Please specify with port and IP where package is sent to.
Returns number of bytes sent.
Lasterror is set.

See also:

Feedback, Comments & Corrections

UDPSocketMBS.SendMessage(Data as string, IP as String, Port as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.3 Yes Yes Yes Yes No
Function: Sends a datagram.
Notes:
Please specify with port and IP where package is sent to.
Returns number of bytes sent.
Lasterror is set.

See also:

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins