java.io.Closeable, java.lang.AutoCloseable, SAMDatagramReceiver, SAMMessageSess, Sessionclass SAMv3DatagramSession extends SAMDatagramSession implements Session, SAMDatagramReceiver
DGRAM_SIZE_MAX, recv_isOwnSession, _log| コンストラクタ | 説明 |
|---|---|
SAMv3DatagramSession(java.lang.String nick,
java.util.Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenPort,
SAMv3DatagramServer dgServer) |
Build a Datagram Session on an existing i2p session
registered with the given nickname
Caller MUST call start().
|
SAMv3DatagramSession(java.lang.String nick,
SAMv3DatagramServer dgServer) |
build a DatagramSession according to informations registered
with the given nickname
Caller MUST call start().
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
java.lang.String |
getNick() |
|
void |
receiveDatagramBytes(Destination sender,
byte[] data,
int proto,
int fromPort,
int toPort) |
Send a byte array to a SAM client.
|
void |
stopDatagramReceiving() |
Stop receiving data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmessageReceived, sendBytes, sendBytes, shutDownclose, getDestination, getListenPort, getListenProtocol, sendBytes, sendBytes, startclose, getDestination, getI2PSession, getListenPort, getListenProtocol, sendBytesThroughMessageSession, sendBytesThroughMessageSession, startpublic SAMv3DatagramSession(java.lang.String nick,
SAMv3DatagramServer dgServer)
throws java.io.IOException,
DataFormatException,
I2PSessionException,
SAMException
nick - nickname of the sessionjava.io.IOExceptionDataFormatExceptionI2PSessionExceptionSAMExceptionpublic SAMv3DatagramSession(java.lang.String nick,
java.util.Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenPort,
SAMv3DatagramServer dgServer)
throws java.io.IOException,
DataFormatException,
I2PSessionException
nick - nickname of the sessionjava.io.IOExceptionDataFormatExceptionI2PSessionExceptionpublic void receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) throws java.io.IOException
SAMDatagramReceiverreceiveDatagramBytes インタフェース内 SAMDatagramReceiversender - Destinationdata - Byte array to be receivedproto - I2CP protocolfromPort - I2CP from porttoPort - I2CP to portjava.io.IOExceptionpublic void stopDatagramReceiving()
SAMDatagramReceiverstopDatagramReceiving インタフェース内 SAMDatagramReceiver