Basics
Guides
API Reference
Basics
Guides
API Reference
[213:14] (extern: com.lehman.aussom.AussomUdpPacket) extends: object
The udpPacket class implements UDP packet support.
udpPacket (int Size = 1476)
Constructor creats a new udpPackat with the optional packet size and returns it.
Size is an int with the packet size.This object.newUdpPacket (int Size = 1472)
setAddress (string Address)
Sets the packet address.
Address is a string with the value.This object.setData (object BufferObj)
Sets the data for the packet with the provided Buffer object.
BufferObj is a Buffer object with the data to set.This object.setLength (int Length)
Sets the packet length in bytes.
Length is an int with the value.This object.setPort (int Port)
Sets the destination port number.
Port is an int with the value.This object.setSocketAddress (string Address, int Port)
Sets the socket address and port with the provided arguments.
Address is a string with the value to set.Port is an int with the port number to set.This object.setString (string Str, string Charset = "utf_8")
Sets the string value with the provided string and optional character set value.
Str is a string to set in the payload.Charset is an optional string with the character set to use.This object.getAddress ()
Gets the packet address.
A string with the value.getData ()
Gets the packet data.
A Buffer object with the value.size ()
Gets the packet size in bytes.
An int with the value.getOffset ()
Gets the offset of the data in the packet.
An int with the value.getPort ()
Gets the packet port number.
An int with the port number.getSocketAddress ()
Gets the packet address.
A string with the address.newBuffer (int Size = 1476)
Creates a new Buffer with the provided size.
Size is the number of bytes for the Buffer.A Buffer object.getLength ()
Gets the buffer length.
An int with the value.getString (string Charset = "utf_8")
Gets the buffer data as a string with the optional character set.
Charset is a string with the character set to use.A string with the value.[23:14] static extends: object
Module JAR loader class.
[32:14] (extern: com.lehman.aussom.AussomUdpSocket) extends: object
The udpSocket class implements UDP socket support.
udpSocket (string Host = null, int Port = null)
Constructor creates a new UDP socket with the optional arguments and returns it.
Host is a string with the host to use.Port is an int with the port number.This object.newUdpSocket (string Host = null, int Port = null)
bind (string Host = "localhost", int Port = 4444)
Binds the socket to the local interface.
Host is a string with the host to bind to.Port is an int with the port number to bind to.This object.close ()
Closes the socket.
This object.connect (string Host = "localhost", int Port = 4444)
Connects the socket with the optional arguemnts.
Host is a string with the host.Port is an int with the port number.This object.disconnect ()
Disconnects the socket.
This object.setBroadcast (bool SO_BROADCAST)
Sets the socket broadcast flag.
SO_BROADCAST is a bool with the flag.This object.setRxBufferSize (int BufferSize)
Sets the receive buffer size.
BufferSize is an int with the buffer size.This object.setTxBufferSize (int BufferSize)
Sets the transmit buffer size.
BufferSize is an int with the buffer size.This object.setReuseAddress (bool Reuse)
Sets the reuse address flag.
Reuse is a bool with the flag.This object.setSoTimeout (int SO_TIMEOUT)
Sets the SO_TIMEOUT in milliseconds.
SO_TIMEOUT is an int with the timeout value.This object.setTrafficClass (int TrafficClass)
Sets the DSCP traffic class.
TrafficClass is an int with the traffic class to set.This object.send (object PacketObject)
Sends the provided packet.
PackateObject is a udpPacket object to send.This object.receive (object PacketObject)
Receives a packet from the socket and stores it in the provided udpPacket object.
PacketObject is a udpPacket object to store the received packet into.This object.getBroadcast ()
Gets the broadcast flag.
A bool with the flag value.getInetAddress ()
Gets the inet address.
A string with the value.getLocalAddress ()
Gets the local address.
A string with the value.getLocalSocketAddress ()
Gets the local socket address.
A string with the value.getPort ()
Gets the port number.
An int with the value.getLocalPort ()
Gets the local port number.
An int with the value.getRxBufferSize ()
Gets the receive buffer size.
An int with the value.getTxBufferSize ()
Gets the transmit buffer size.
An int with the value.getSoTimeout ()
Gets the SO_TIMEOUT in milliseconds value.
An int with the value.getTrafficClass ()
Get the DSCP traffic class value.
An int with the value.isBound ()
Gets the is bound flag.
A bool with the flag value.isClosed ()
Gets the is closed flag.
A bool with the flag value.isConnected ()
Gets the is connected flag.
A bool with the flag value.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.