public class OpcTcpServer extends AbstractState<CloseableObjectState,ServiceResultException> implements EndpointServer
for creating executor instances| Modifier and Type | Class and Description |
|---|---|
class |
OpcTcpServer.OpcTcpEndpointHandle |
static class |
OpcTcpServer.ReverseSocketHandle |
class |
OpcTcpServer.SocketHandle |
EndpointServer.EndpointHandle, EndpointServer.ReverseEndpointHandleConnectionMonitor.ConnectListener| Modifier and Type | Field and Description |
|---|---|
EndpointBinding |
discoveryEndpointBinding |
Server |
discoveryServer
Service server used when client connects with "" url for endpoint discovery
|
discoveryEndpoint| Constructor and Description |
|---|
OpcTcpServer(Application application)
Constructor for OpcTcpServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionMonitor.ConnectListener l)
addConnectionListener.
|
EndpointServer.EndpointHandle |
bind(SocketAddress socketAddress,
EndpointBinding endpointBinding)
Bind an endpoint to a handle.
|
com.prosysopc.ua.stack.transport.tcp.nio.OpcTcpReverseEndpointHandle |
bindReverse(SocketAddress addressToConnect,
ReverseConnectionParameters parameters,
ScheduledExecutorService retryScheduledExecutorService)
Binds a ReverseHello connection point.
|
OpcTcpServer |
close()
Close the object.
|
void |
disconnectAll()
Disconnect all existing connections.
|
SocketAddress |
getBoundAddress()
getBoundAddress.
|
List<SocketAddress> |
getBoundSocketAddresses()
getBoundSocketAddresses.
|
void |
getConnections(Collection<ServerConnection> result)
getConnections.
|
EncoderContext |
getEncoderContext()
getEncoderContext.
|
EndpointBindingCollection |
getEndpointBindings()
Get a collection that contains related endpoints bindings.
|
int |
getReceiveBufferSize()
Getter for the field
receiveBufferSize. |
void |
removeConnectionListener(ConnectionMonitor.ConnectListener l)
removeConnectionListener.
|
void |
setReceiveBufferSize(int receiveBufferSize)
Define the receiveBufferSize to use for the connection socket of the server.
|
OpcTcpServer.SocketHandle[] |
socketHandleSnapshot()
socketHandleSnapshot.
|
String |
toString() |
addStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onListenerException, onStateTransition, removeStateListener, removeStateNotifiable, setError, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, addStateNotifiable, getError, getState, removeStateListener, removeStateNotifiable, waitForState, waitForState, waitForStateUninterruptiblypublic Server discoveryServer
public EndpointBinding discoveryEndpointBinding
public OpcTcpServer(Application application) throws ServiceResultException
Constructor for OpcTcpServer.
application - a Application object.ServiceResultException - if any.public void addConnectionListener(ConnectionMonitor.ConnectListener l)
addConnectionListener.
addConnectionListener in interface ConnectionMonitorl - a ConnectionMonitor.ConnectListener object.public EndpointServer.EndpointHandle bind(SocketAddress socketAddress, EndpointBinding endpointBinding) throws ServiceResultException
bind in interface EndpointServersocketAddress - a SocketAddress object.endpointBinding - a EndpointBinding object.EndpointServer.EndpointHandle object.ServiceResultException - if any.public com.prosysopc.ua.stack.transport.tcp.nio.OpcTcpReverseEndpointHandle bindReverse(SocketAddress addressToConnect, ReverseConnectionParameters parameters, ScheduledExecutorService retryScheduledExecutorService)
EndpointServerbindReverse in interface EndpointServerpublic OpcTcpServer close()
close in interface CloseableObjectCloseableObject object.public void disconnectAll()
public SocketAddress getBoundAddress()
getBoundAddress.
SocketAddress object.public List<SocketAddress> getBoundSocketAddresses()
getBoundSocketAddresses.
getBoundSocketAddresses in interface EndpointServerList object.public void getConnections(Collection<ServerConnection> result)
getConnections.
getConnections in interface ConnectionMonitorresult - a Collection object.public EncoderContext getEncoderContext()
getEncoderContext.
getEncoderContext in interface EndpointServerEncoderContext object.public EndpointBindingCollection getEndpointBindings()
getEndpointBindings in interface EndpointServerpublic int getReceiveBufferSize()
Getter for the field receiveBufferSize.
public void removeConnectionListener(ConnectionMonitor.ConnectListener l)
removeConnectionListener.
removeConnectionListener in interface ConnectionMonitorl - a ConnectionMonitor.ConnectListener object.public void setReceiveBufferSize(int receiveBufferSize)
throws ServiceResultException
Default value: 0, which omits the parameter and the default value for the socket (depending on the operating system) is used.
receiveBufferSize - the new size in bytesServiceResultException - if any.public OpcTcpServer.SocketHandle[] socketHandleSnapshot()
socketHandleSnapshot.
OpcTcpServer.SocketHandle
objects.Copyright © 2026. All rights reserved.