Platforms to show: All Mac Windows Linux Cross-Platform
UDPSocketMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Network | MBS Network Plugin | 14.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Similar to Xojo's built in UDPSocket class, but more low level and with more options.
- 3 events
- event DataAvailable
- event Error
- event SendComplete
- 22 properties
- property AddressFamily as Integer
- property AvailableBytes as Integer
- property BindAddress as String
- property BindPort as Integer
- property Broadcast as Boolean
- property Handle as Integer
- property Lasterror as Integer
- property LocalIP as String
- property LocalPort as Integer
- property MulticastInterface as String
- property MulticastLoop as Boolean
- property MulticastTimeToLive as Integer
- property Protocol as Integer
- property ReceiveBufferSize as Integer
- property ReuseAddress as Boolean
- property ReusePort as Boolean
- property SendBufferSize as Integer
- property SocketError as Integer
- property SocketType as Integer
- property TimeToLive as Integer
- property Type as Integer
- property TypeOfService as Integer
- 10 methods
- method AddMembership(MultiAddress as string, InterfaceAddress as string = "")
- method Bind(Port as Integer, IP as string = "")
- method Constructor
- method Destructor
- method DropMembership(MultiAddress as string, InterfaceAddress as string = "")
- method Poll
- method Read(peek as boolean = false) as DatagramMBS
- method SendMessage(Data as DatagramMBS) as Integer
- method SendMessage(Data as MemoryBlock, IP as String, Port as Integer) as Integer
- method SendMessage(Data as string, IP as String, Port as Integer) as Integer
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 21.2pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.4
- MBS Xojo Plugins, version 18.4pr10
- MBS Xojo Plugins, version 18.3pr3
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.0
- MBS Xojo Plugins, version 18.0pr6
- Raw Sockets for Xojo
- MBS Xojo / Real Studio Plugins, version 14.5pr2
- [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.4
- [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.3
Xojo Developer Magazine
Release notes
- Version 21.2
- Fixed problem in UDPSocketMBS class with stack overflow exception if you happen to call poll within DataAvailable event.
- Version 18.4
- Added RAWSocketMBS.AddressFamily and UDPSocketMBS.AddressFamily properties.
- Fixed UDPSocketMBS class constructor for IPv4.
- Version 18.3
- Added Protocol and SocketType properties to RAWSocketMBS and UDPSocketMBS class.
- Version 18.0
- Added LocalIP, LocalPort and Poll to RAWSocketMBS and UDPSocketMBS classes.
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS Network Plugin.
