com.cosylab.epics.caj.cas
Class CASAcceptor

java.lang.Object
  extended by com.cosylab.epics.caj.cas.CASAcceptor
All Implemented Interfaces:
ReactorHandler

public class CASAcceptor
extends Object
implements ReactorHandler

Channel Access Server TCP acceptor.

Version:
$id$
Author:
Matej Sekoranja

Constructor Summary
CASAcceptor(CAContext context, int port)
           
 
Method Summary
 void destroy()
          Destroy acceptor (stop listening).
 InetAddress getBindAddress()
          Bind socket address.
 void handleEvent(SelectionKey key)
          Handle IO event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CASAcceptor

public CASAcceptor(CAContext context,
                   int port)
            throws gov.aps.jca.CAException
Parameters:
context -
Throws:
gov.aps.jca.CAException
Method Detail

handleEvent

public void handleEvent(SelectionKey key)
Handle IO event.

Specified by:
handleEvent in interface ReactorHandler
Parameters:
key - key to be processed.
See Also:
ReactorHandler.handleEvent(java.nio.channels.SelectionKey)

getBindAddress

public InetAddress getBindAddress()
Bind socket address.

Returns:
bind socket address, null if not binded.

destroy

public void destroy()
Destroy acceptor (stop listening).



Copyright © 2004-2013 Cosylab. All Rights Reserved.