public class RelayChannel extends Object
| Constructor and Description |
|---|
RelayChannel(String host,
int portA) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static RelayChannel |
createLocalRelayChannel(String host,
int minPort,
int maxPort) |
SocketAddress |
getAddressA() |
SocketAddress |
getAddressB() |
Object |
getAttachment() |
SelDatagramChannel |
getChannelA_() |
SelDatagramChannel |
getChannelA() |
SelDatagramChannel |
getChannelB_() |
SelDatagramChannel |
getChannelB() |
String |
getIp() |
long |
getLastReceivedTimeA() |
long |
getLastReceivedTimeB() |
int |
getPortA() |
int |
getPortB() |
void |
setAttachment(Object attachment) |
public RelayChannel(String host, int portA) throws IOException
IOExceptionpublic static RelayChannel createLocalRelayChannel(String host, int minPort, int maxPort) throws IOException
IOExceptionpublic SocketAddress getAddressB()
public SocketAddress getAddressA()
public int getPortA()
public int getPortB()
public String getIp()
public long getLastReceivedTimeA()
public long getLastReceivedTimeB()
public Object getAttachment()
public void setAttachment(Object attachment)
public void close()
public SelDatagramChannel getChannelA()
public SelDatagramChannel getChannelB()
public SelDatagramChannel getChannelA_()
public SelDatagramChannel getChannelB_()
Copyright © 2021. All rights reserved.