RAWSocketMBS 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

RAWSocketMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Network MBS Network Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class for low level and raw sockets.
Example
dim sock as RAWSocketMBS

// create UDP socket
sock = new RAWSocketMBS(RAWSocketMBS.AddressFamilyINet, RAWSocketMBS.SocketTypeDatagram, RAWSocketMBS.ProtocolUDP)

Similar to Xojo's built in Socket class, but more low level and with more options.
Raw sockets for things like PING may need root permissions.

Address Families

Constant Value Description
AddressFamilyINet 2 IPv4

Protocols

Constant Value Description
ProtocolICMP 1 ICMP
ProtocolIP 0 IPv4
ProtocolIPv6 41 IPv6
ProtocolRaw 255 Raw protocol
ProtocolTCP 6 TCP
ProtocolUDP 17 UDP

Socket Types

Constant Value Description
SocketTypeDatagram 2 Datagram, e.g. UDP.
SocketTypeRaw 3 Raw socket, requires root permissions.
SocketTypeStream 1 Stream socket, e.g. TCP/IP.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes


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


RaspberryPiCameraMBS   -   RC4MBS


💬 Ask a question or report a problem