org.opcfoundation.ua.transport
Interface ServerConnection

All Known Implementing Classes:
AbstractServerConnection, HttpsServerConnection, OpcTcpServerConnection

public interface ServerConnection

UAConnection is a stateful object with four possible states {Closed, Opening, Open, Closing}. A connection is transfers to open state after handshake (Hello/Acknowledge). Closed state is final.


Nested Class Summary
static interface ServerConnection.SecureChannelListener
           
 
Method Summary
 void addConnectionListener(IConnectionListener listener)
          Add response listener
 void addSecureChannelListener(ServerConnection.SecureChannelListener l)
          addSecureChannelListener.
 SocketAddress getLocalAddress()
          Get local socket address
 SocketAddress getRemoteAddress()
          Get remote socket address
 void getSecureChannels(Collection<ServerSecureChannel> list)
          Get all open and opening secure channels of this connection.
 void removeConnectionListener(IConnectionListener listener)
          Add response listener
 void removeSecureChannelListener(ServerConnection.SecureChannelListener l)
          removeSecureChannelListener.
 

Method Detail

getLocalAddress

SocketAddress getLocalAddress()
Get local socket address

Returns:
socket address

getRemoteAddress

SocketAddress getRemoteAddress()
Get remote socket address

Returns:
remote socket address

getSecureChannels

void getSecureChannels(Collection<ServerSecureChannel> list)
Get all open and opening secure channels of this connection.

Parameters:
list - list to be filled

addSecureChannelListener

void addSecureChannelListener(ServerConnection.SecureChannelListener l)

addSecureChannelListener.

Parameters:
l - a ServerConnection.SecureChannelListener object.

removeSecureChannelListener

void removeSecureChannelListener(ServerConnection.SecureChannelListener l)

removeSecureChannelListener.

Parameters:
l - a ServerConnection.SecureChannelListener object.

addConnectionListener

void addConnectionListener(IConnectionListener listener)
Add response listener

Parameters:
listener - a IConnectionListener object.

removeConnectionListener

void removeConnectionListener(IConnectionListener listener)
Add response listener

Parameters:
listener - a IConnectionListener object.


Copyright © 2018. All rights reserved.