java.io.Closeable, java.lang.AutoCloseable, SAMMessageSess, SAMRawReceiver, Sessionclass SAMv3RawSession extends SAMRawSession implements Session, SAMRawReceiver
_isOwnSession, _logRAW_SIZE_MAX, recv| コンストラクタ | 説明 |
|---|---|
SAMv3RawSession(java.lang.String nick,
java.util.Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenProtocol,
int listenPort,
SAMv3DatagramServer dgServer) |
Build a Raw Session on an existing i2p session
registered with the given nickname
Caller MUST call start().
|
SAMv3RawSession(java.lang.String nick,
SAMv3DatagramServer dgServer) |
Build a Raw Datagram Session according to information
registered with the given nickname
Caller MUST call start().
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
java.lang.String |
getNick() |
|
(package private) static java.net.SocketAddress |
getSocketAddress(java.util.Properties props,
SAMv3Handler handler) |
|
void |
receiveRawBytes(byte[] data,
int proto,
int fromPort,
int toPort) |
Send a byte array to a SAM client, without informations
regarding the sender.
|
void |
stopRawReceiving() |
Stop receiving data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getDestination, getListenPort, getListenProtocol, sendBytes, sendBytes, startclose, getDestination, getI2PSession, getListenPort, getListenProtocol, sendBytesThroughMessageSession, sendBytesThroughMessageSession, startmessageReceived, sendBytes, sendBytes, shutDownpublic SAMv3RawSession(java.lang.String nick,
SAMv3DatagramServer dgServer)
throws java.io.IOException,
DataFormatException,
I2PSessionException
nick - nickname of the sessionjava.io.IOExceptionDataFormatExceptionI2PSessionExceptionpublic SAMv3RawSession(java.lang.String nick,
java.util.Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenProtocol,
int listenPort,
SAMv3DatagramServer dgServer)
throws java.io.IOException,
DataFormatException,
I2PSessionException
nick - nickname of the sessionjava.io.IOExceptionDataFormatExceptionI2PSessionExceptionstatic java.net.SocketAddress getSocketAddress(java.util.Properties props,
SAMv3Handler handler)
public void receiveRawBytes(byte[] data,
int proto,
int fromPort,
int toPort)
throws java.io.IOException
SAMRawReceiverreceiveRawBytes インタフェース内 SAMRawReceiverdata - Byte array to be receivedproto - I2CP protocolfromPort - I2CP from porttoPort - I2CP to portjava.io.IOExceptionpublic void stopRawReceiving()
SAMRawReceiverstopRawReceiving インタフェース内 SAMRawReceiver