Package | Description |
---|---|
org.snf4j.core |
Provides interfaces and classes implementing the core functionalities of the
API.
|
org.snf4j.core.factory |
Provides interfaces and classes for factories of different kind that are used
by the API.
|
org.snf4j.core.handler |
Provides interfaces and classes for implementing sessions' handlers.
|
org.snf4j.core.proxy |
Provides classes and interfaces for proxy handling.
|
org.snf4j.core.session |
Provides classes and interfaces used for session handling.
|
org.snf4j.example.chat |
A chat client/server example.
|
org.snf4j.example.discarding |
A discarding client/server example.
|
org.snf4j.example.echo |
An echoing (ping-pong traffic) client/server example.
|
org.snf4j.example.engine |
A custimized protocol engine (for Caesar Cipher) client/server example.
|
org.snf4j.example.file |
A zero-copy file transfer client/server example.
|
org.snf4j.example.websocket |
A WebSocket (data transfer and web chat) client/server example.
|
org.snf4j.websocket |
Provides main interfaces and classes implementing the functionalities of the
Web Socket protocol.
|
Modifier and Type | Method and Description |
---|---|
IStreamHandler |
StreamSession.getHandler() |
IStreamHandler |
EngineStreamSession.getHandler() |
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
SelectorLoop.register(SocketChannel channel,
IStreamHandler handler)
Registers a stream-oriented channel with this selector loop.
|
Constructor and Description |
---|
EngineStreamSession(IEngine engine,
IStreamHandler handler,
ILogger logger)
Constructs a stream-oriented session associated with a protocol
engine and a handler.
|
EngineStreamSession(String name,
IEngine engine,
IStreamHandler handler,
ILogger logger)
Constructs a named stream-oriented session associated with a protocol
engine and a handler.
|
SSLSession(IStreamHandler handler,
boolean clientMode)
Constructs the SSL/TLS session associated with a handler.
|
SSLSession(SocketAddress remoteAddress,
IStreamHandler handler,
boolean clientMode)
Constructs the SSL/TLS session associated with a handler and a
remote peer.
|
SSLSession(String name,
IStreamHandler handler,
boolean clientMode)
Constructs the named SSL/TLS session associated with a handler.
|
SSLSession(String name,
SocketAddress remoteAddress,
IStreamHandler handler,
boolean clientMode)
Constructs the named SSL/TLS session associated with a handler and a
remote peer.
|
StreamSession(IStreamHandler handler)
Constructs a stream-oriented session associated with a handler.
|
StreamSession(String name,
IStreamHandler handler)
Constructs a named stream-oriented session associated with a handler.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IStreamHandler |
AbstractSessionFactory.createHandler(SocketChannel channel)
Creates a stream-oriented handler for a newly accepted connection.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractStreamHandler
Base implementation of the
IStreamHandler interface. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractProxyHandler
Base implementation for handlers processing client connections via proxy
protocols.
|
class |
AbstractSocksProxyHandler
Base implementation for handlers processing client connections via SOCKS
proxy protocols.
|
class |
HttpProxyHandler
Handles client proxy connections via the HTTP tunneling protocol.
|
class |
Socks4ProxyHandler
Handles client proxy connections via the SOCKS Protocol Version 4.
|
class |
Socks5ProxyHandler
Handles client proxy connections via the SOCKS Protocol Version 5.
|
Modifier and Type | Method and Description |
---|---|
IStreamHandler |
IStreamSession.getHandler()
Gets the stream-oriented handler associated with this session
|
Modifier and Type | Class and Description |
---|---|
class |
ChatClientHandler |
class |
ChatServerHandler |
Modifier and Type | Class and Description |
---|---|
class |
DiscardingClientHandler |
class |
DiscardingServerHandler |
Modifier and Type | Class and Description |
---|---|
class |
EchoClientHandler |
class |
EchoServerHandler |
Modifier and Type | Class and Description |
---|---|
class |
EngineClientHandler |
class |
EngineServerHandler |
Constructor and Description |
---|
EngineSession(IEngine engine,
IStreamHandler handler) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFileHandler |
class |
FileClientHandler |
Modifier and Type | Class and Description |
---|---|
class |
WebSocketClientHandler |
class |
WebSocketServerHandler |
Modifier and Type | Interface and Description |
---|---|
interface |
IWebSocketHandler
Extends the
IStreamHandler interface to cover the Web Socket functionalities. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractWebSocketHandler
Base implementation of the
IWebSocketHandler interface. |
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.