Packet Context

Custom UDP Datagrams

  • Handle custom UDP datagrams in rules engine

  • Context Variable: packet

  • Only applicable to UDP Input Service

API Interface

//get's the packet data's length
int getLength();

//get's the sender's IP address
InetAddress getAddress();

//get's the sender's port
int getPort();

//get's the packet data's offset
int getOffset();

//send's a udp packet
void send(String host, int port, byte[] payload);

//send's a udp packet reply to the sender
void reply(byte[] payload);

//get's the packet data
byte[] getData();

//get's the sender's socket address
SocketAddress getSocketAddress();

Inherited APIs

Context Base

See Also

UDP Input