public class ClientMessage extends Object
| Constructor and Description |
|---|
ClientMessage(net.i2p.data.Destination toDest,
net.i2p.data.Payload payload,
net.i2p.data.i2cp.SessionConfig config,
net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId msgID,
long messageNonce,
long expiration,
int flags)
For outbound (locally originated)
|
ClientMessage(net.i2p.data.Hash toDestHash,
net.i2p.data.Payload payload)
For inbound (from remote dest)
|
| Modifier and Type | Method and Description |
|---|---|
net.i2p.data.Destination |
getDestination()
Retrieve the destination to which this message is directed.
|
net.i2p.data.Hash |
getDestinationHash()
Retrieve the destination to which this message is directed.
|
long |
getExpiration()
Expiration requested by the client that sent the message.
|
int |
getFlags()
Flags requested by the client that sent the message.
|
net.i2p.data.Destination |
getFromDestination()
Valid for outbound; null for inbound.
|
net.i2p.data.i2cp.MessageId |
getMessageId()
Valid for outbound; null for inbound.
|
long |
getMessageNonce()
Valid for outbound; 0 for inbound.
|
net.i2p.data.Payload |
getPayload()
Retrieve the payload of the message.
|
net.i2p.data.i2cp.SessionConfig |
getSenderConfig()
Retrieve the session config of the client that sent the message.
|
public ClientMessage(net.i2p.data.Destination toDest,
net.i2p.data.Payload payload,
net.i2p.data.i2cp.SessionConfig config,
net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId msgID,
long messageNonce,
long expiration,
int flags)
msgID - the router's ID for this messagemessageNonce - the client's ID for this messagepublic ClientMessage(net.i2p.data.Hash toDestHash,
net.i2p.data.Payload payload)
public net.i2p.data.Payload getPayload()
public net.i2p.data.Destination getDestination()
public net.i2p.data.Destination getFromDestination()
public net.i2p.data.Hash getDestinationHash()
public net.i2p.data.i2cp.MessageId getMessageId()
public long getMessageNonce()
public net.i2p.data.i2cp.SessionConfig getSenderConfig()
public long getExpiration()
public int getFlags()