public class MulticastChannelPhysicalTransport extends Object implements PhysicalTransport
| Constructor and Description |
|---|
MulticastChannelPhysicalTransport(PhysicalTransportConf conf,
boolean blocking) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InetSocketAddress |
getAddress() |
PhysicalTransportConf |
getConf() |
NetworkInterface |
getInterface() |
boolean |
isBlocking() |
void |
join() |
boolean |
receive(ByteBuffer pack) |
boolean |
receive(DatagramPacket pack) |
void |
send(ByteBuffer b) |
void |
send(DatagramPacket pack) |
public MulticastChannelPhysicalTransport(PhysicalTransportConf conf, boolean blocking)
public boolean receive(DatagramPacket pack) throws IOException
receive in interface PhysicalTransportIOExceptionpublic boolean receive(ByteBuffer pack) throws IOException
receive in interface PhysicalTransportIOExceptionpublic void send(DatagramPacket pack) throws IOException
send in interface PhysicalTransportIOExceptionpublic void send(ByteBuffer b) throws IOException
send in interface PhysicalTransportIOExceptionpublic InetSocketAddress getAddress()
public NetworkInterface getInterface()
public void join()
throws IOException
join in interface PhysicalTransportIOExceptionpublic PhysicalTransportConf getConf()
getConf in interface PhysicalTransportpublic void close()
close in interface PhysicalTransportpublic boolean isBlocking()
isBlocking in interface PhysicalTransportCopyright © 2015. All rights reserved.