org.opcfoundation.ua.utils.asyncsocket
Interface AsyncSocket

All Known Implementing Classes:
AsyncSocketImpl

public interface AsyncSocket

AsyncSocket interface.

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)
See Also:
AsyncSocketImpl

Method Summary
 AsyncSocketImpl close()
          close.
 void connect(SocketAddress addr)
          connect.
 AsyncInputStream getInputStream()
          getInputStream.
 AsyncOutputStream getOutputStream()
          getOutputStream.
 IStatefulObject<SocketState,IOException> getStateMonitor()
          getStateMonitor.
 Socket socket()
          socket.
 SocketChannel socketChannel()
          socketChannel.
 

Method Detail

getInputStream

AsyncInputStream getInputStream()

getInputStream.

Returns:
a AsyncInputStream object.

getOutputStream

AsyncOutputStream getOutputStream()

getOutputStream.

Returns:
a AsyncOutputStream object.

close

AsyncSocketImpl close()
                      throws IOException

close.

Returns:
a AsyncSocketImpl object.
Throws:
IOException - if any.

socketChannel

SocketChannel socketChannel()

socketChannel.

Returns:
a SocketChannel object.

socket

Socket socket()

socket.

Returns:
a Socket object.

connect

void connect(SocketAddress addr)
             throws IOException

connect.

Parameters:
addr - a SocketAddress object.
Throws:
IOException - if any.

getStateMonitor

IStatefulObject<SocketState,IOException> getStateMonitor()

getStateMonitor.

Returns:
a IStatefulObject object.


Copyright © 2018. All rights reserved.