public final class DatagramSender extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean | send(I2PSession session,
SendMessageOptions opts,
Destination dest,
byte[] payload,
int fromPort,
int toPort,
boolean repliable)Send a pre-wrapped datagram payload through the session. |
public static boolean send(I2PSession session, SendMessageOptions opts, Destination dest, byte[] payload, int fromPort, int toPort, boolean repliable) throws I2PSessionException
session - the session to send throughopts - the send options (date, lease set, crypto tags)dest - the destination to send topayload - the wrapped datagram payload, sent in fullfromPort - the port to send fromtoPort - the port to send torepliable - true for a repliable datagram (PROTO_DATAGRAM), false for rawI2PSessionException - on session failure