Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

MBS Xojo UDP Socket Kit

UDPSocketMB class:

Class UDPSocketMB
ComputedProperty Broadcast As Boolean
Sub Set()
Enable or disable Broadcast
Sub Get()
Query Broadcast
ComputedProperty BytesAvailable As Integer
Sub Get()
check how many bytes are in buffer
Sub Constructor()
Create a new socket
Sub Destructor()
Closes socket
Sub Listen(Port as Integer)
Listen on a port
Function ReadMessage(MaxSize as Integer, byref IP as Text, byref Port as Integer) As Xojo.Core.MemoryBlock
Read a message
Function SendMessage(IP as Text, port as integer, Message as Text) As Integer
send some Text as UTF-8
Function SendMessage(IP as Text, port as integer, Message as Xojo.Core.MemoryBlock) As Integer
send some data Returns number of bytes sent
Property Handle As Integer = -1
Property ListenPort As Integer
End Class




Links
MBS Xojo Plugins