Package jmri.jmrix.ipocs
Class IpocsSocketAcceptor
- java.lang.Object
-
- jmri.jmrix.ipocs.IpocsSocketAcceptor
-
- All Implemented Interfaces:
java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Object>
public class IpocsSocketAcceptor extends java.lang.Object implements java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Object>
- Since:
- 4.21.2
-
-
Constructor Summary
Constructors Constructor Description IpocsSocketAcceptor(IpocsPortController portController, java.nio.channels.AsynchronousServerSocketChannel serverSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completed(java.nio.channels.AsynchronousSocketChannel result, java.lang.Object attachment)
void
failed(java.lang.Throwable exc, java.lang.Object attachment)
-
-
-
Constructor Detail
-
IpocsSocketAcceptor
public IpocsSocketAcceptor(IpocsPortController portController, java.nio.channels.AsynchronousServerSocketChannel serverSocket)
-
-
Method Detail
-
completed
public void completed(java.nio.channels.AsynchronousSocketChannel result, java.lang.Object attachment)
- Specified by:
completed
in interfacejava.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Object>
-
failed
public void failed(java.lang.Throwable exc, java.lang.Object attachment)
- Specified by:
failed
in interfacejava.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Object>
-
-