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

Public Member Functions

void run ()
 

Package Functions

 Acceptor (ServerSocketChannel ssc, Dispatcher d, SSLContext sslContext)
 

Private Attributes

Dispatcher d
 
ServerSocketChannel ssc
 
SSLContext sslContext
 

Detailed Description

A Runnable class which sits in a loop accepting SocketChannels, then registers the Channels with the read/write Selector.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 52 of file Acceptor.java.

Constructor & Destructor Documentation

◆ Acceptor()

Acceptor.Acceptor ( ServerSocketChannel  ssc,
Dispatcher  d,
SSLContext  sslContext 
)
package

Definition at line 59 of file Acceptor.java.

References d, ssc, and sslContext.

Member Function Documentation

◆ run()

void Acceptor.run ( )

Definition at line 65 of file Acceptor.java.

References d, ChannelIO.getInstance(), ChannelIOSecure.getInstance(), ChannelIO.getSocketChannel(), Dispatcher.register(), ssc, and sslContext.

Here is the call graph for this function:

Member Data Documentation

◆ d

Dispatcher Acceptor.d
private

Definition at line 55 of file Acceptor.java.

Referenced by Acceptor(), and run().

◆ ssc

ServerSocketChannel Acceptor.ssc
private

Definition at line 54 of file Acceptor.java.

Referenced by Acceptor(), and run().

◆ sslContext

SSLContext Acceptor.sslContext
private

Definition at line 57 of file Acceptor.java.

Referenced by Acceptor(), and run().


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