PacketSocketMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

PacketSocketMBS class

Super class: TCPSocket

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Network MBS Network Plugin 8.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An extension to the socket class for easy sending packets through the net.

A packet is made like this:
+0: Size of data block
+4: 4 byte code string
+8: 4 byte for ID
+12: variable data.

The numbers are send in low endian format so this is crossplatform.

This socket subclass can be easily made in Xojo code itself. I did it for several of my applications, so if you like it decide between making it yourself or using this one which may even be faster, because it is written in C?

This class is only available in RB 4.0 or newer, because it crashes on RB 3.5.

As the strings are transferred as binary data you need to take care that you send text e.g. as UTF8 and restore this encoding setting on receiving.
Subclass of the TCPSocket class.

Super class TCPSocket

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


OverlayMBS   -   PaletteCalculatorMBS


💬 Ask a question or report a problem