public class UdpTransport extends InetTransport<UdpLocator>
monitorTask, monitorTasks, monitorTimer, TIMER_THREAD_NAMEpeerLocatorchListener, listenerchListenersByUpper, supportsDuplexdefaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppersDEFAULT_APP_ID| コンストラクタと説明 |
|---|
UdpTransport(PeerId peerId,
UdpLocator peerLocator) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
fin()
Finalize the Transport object.
|
int |
getMTU()
Returns the MTU (Maximum Transmission Unit) of the Transport object.
|
RawChannel<UdpLocator> |
newChannel(UdpLocator dst,
boolean isDuplex,
int timeout) |
void |
send(UdpLocator toPeer,
Object msg)
Send a message to the dst which have the default ObjectId.
|
hasStableLocator, isUp, registerTrans, unregisterTranscanSend, canSendNormalObject, getEndpoint, getLowerTransportgetChannelListener, getChannelListener, getListener, getListener, newChannel, newChannel, newChannel, newChannel, send, setChannelListener, setChannelListener, setListener, setListenernewChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, supportsDuplex, toString0checkActive, getBaseTransport, getDefaultAppId, getLowerTransports, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, supportsDuplexgetBaseTransport, getLowerTransports, getPeer, getPeerId, getTransportId, getTransportIdPath, send, send, send, send, send, sendpublic UdpTransport(PeerId peerId, UdpLocator peerLocator) throws IOException
IOExceptionpublic void fin()
Transportfin インタフェース内 Transport<UdpLocator>fin クラス内 InetTransport<UdpLocator>public int getMTU()
TransportgetMTU インタフェース内 Transport<UdpLocator>getMTU クラス内 TransportImpl<UdpLocator>public void send(UdpLocator toPeer, Object msg) throws IOException
Transportdst.
This type of send can be applicable for the cases where the application have
the default application Id.send インタフェース内 MonoTransport<UdpLocator>send インタフェース内 Transport<UdpLocator>send クラス内 RawTransport<UdpLocator>toPeer - The Destinationmsg - The messageProtocolUnsupportedException - is thrown when the protocol is not supported
for the dstIOException - is thrown when an I/O error occurs.public RawChannel<UdpLocator> newChannel(UdpLocator dst, boolean isDuplex, int timeout) throws IOException
newChannel インタフェース内 MonoTransport<UdpLocator>newChannel クラス内 RawTransport<UdpLocator>IOExceptionCopyright © 2017. All rights reserved.