Crossfire JXClient, Trunk
Public Member Functions | Package Functions | Private Attributes | List of all members
AcceptHandler Class Reference
Inheritance diagram for AcceptHandler:
Inheritance graph
Collaboration diagram for AcceptHandler:
Collaboration graph

Public Member Functions

void handle (SelectionKey sk) throws IOException
 

Package Functions

 AcceptHandler (ServerSocketChannel ssc, Dispatcher dsp, SSLContext sslContext)
 

Private Attributes

ServerSocketChannel channel
 
Dispatcher dsp
 
SSLContext sslContext
 

Detailed Description

A single threaded Handler that performs accepts SocketChannels and registers the Channels with the read/write Selector.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 52 of file AcceptHandler.java.

Constructor & Destructor Documentation

◆ AcceptHandler()

AcceptHandler.AcceptHandler ( ServerSocketChannel  ssc,
Dispatcher  dsp,
SSLContext  sslContext 
)
package

Definition at line 59 of file AcceptHandler.java.

References channel, dsp, and sslContext.

Member Function Documentation

◆ handle()

void AcceptHandler.handle ( SelectionKey  sk) throws IOException

Implements Handler.

Definition at line 66 of file AcceptHandler.java.

References channel, dsp, ChannelIO.getInstance(), ChannelIOSecure.getInstance(), ChannelIO.getSocketChannel(), Dispatcher.register(), and sslContext.

Here is the call graph for this function:

Member Data Documentation

◆ channel

ServerSocketChannel AcceptHandler.channel
private

Definition at line 54 of file AcceptHandler.java.

Referenced by AcceptHandler(), and handle().

◆ dsp

Dispatcher AcceptHandler.dsp
private

Definition at line 55 of file AcceptHandler.java.

Referenced by AcceptHandler(), and handle().

◆ sslContext

SSLContext AcceptHandler.sslContext
private

Definition at line 57 of file AcceptHandler.java.

Referenced by AcceptHandler(), and handle().


The documentation for this class was generated from the following file: