public class TcpServerConnector extends Object implements org.eclipse.californium.elements.Connector
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
|
TcpServerConnector(InetSocketAddress localAddress,
int numberOfThreads,
int idleTimeout) |
protected |
TcpServerConnector(InetSocketAddress localAddress,
int numberOfThreads,
int idleTimeout,
TcpContextUtil contextUtil) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
InetSocketAddress |
getAddress() |
String |
getProtocol() |
protected void |
onNewChannelCreated(io.netty.channel.Channel ch)
Called when a new channel is created, Allows subclasses to add their own handlers first, like an SSL handler.
|
void |
send(org.eclipse.californium.elements.RawData msg) |
void |
setEndpointContextMatcher(org.eclipse.californium.elements.EndpointContextMatcher matcher) |
void |
setRawDataReceiver(org.eclipse.californium.elements.RawDataChannel messageHandler) |
void |
start() |
void |
stop() |
String |
toString() |
public TcpServerConnector(InetSocketAddress localAddress, int numberOfThreads, int idleTimeout)
protected TcpServerConnector(InetSocketAddress localAddress, int numberOfThreads, int idleTimeout, TcpContextUtil contextUtil)
public void start()
throws IOException
start in interface org.eclipse.californium.elements.ConnectorIOExceptionpublic void stop()
stop in interface org.eclipse.californium.elements.Connectorpublic void destroy()
destroy in interface org.eclipse.californium.elements.Connectorpublic void send(org.eclipse.californium.elements.RawData msg)
send in interface org.eclipse.californium.elements.Connectorpublic void setRawDataReceiver(org.eclipse.californium.elements.RawDataChannel messageHandler)
setRawDataReceiver in interface org.eclipse.californium.elements.Connectorpublic void setEndpointContextMatcher(org.eclipse.californium.elements.EndpointContextMatcher matcher)
setEndpointContextMatcher in interface org.eclipse.californium.elements.Connectorpublic InetSocketAddress getAddress()
getAddress in interface org.eclipse.californium.elements.Connectorprotected void onNewChannelCreated(io.netty.channel.Channel ch)
public String getProtocol()
getProtocol in interface org.eclipse.californium.elements.ConnectorCopyright © 2021 Eclipse Foundation. All rights reserved.