Package | Description |
---|---|
org.snf4j.core |
Provides interfaces and classes implementing the core functionalities of 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.dtls |
A DTLS client/server example.
|
org.snf4j.example.echo |
An echoing (ping-pong traffic) client/server example.
|
org.snf4j.example.file |
A zero-copy file transfer client/server example.
|
org.snf4j.example.heartbeat |
A datagram (UDP/IP) 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 |
---|---|
ISessionConfig |
DatagramServerHandler.getConfig() |
Modifier and Type | Method and Description |
---|---|
protected IEngine |
DTLSServerHandler.createEngine(SocketAddress remoteAddress,
ISessionConfig config)
Determines if a newly created session should be a DTLS session driven by the
SSLEngine created by the config.createSSLEngine() method. |
protected IEngine |
DatagramServerHandler.createEngine(SocketAddress remoteAddress,
ISessionConfig config)
Determines if newly created session should be an engine-driver session.
|
Constructor and Description |
---|
DatagramServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config)
Constructs a datagram server handler with the
DefaultSessionStructureFactory . |
DatagramServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a datagram server handler.
|
DTLSServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config)
Constructs a DTLS server handler with the
DefaultSessionConfig . |
DTLSServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a DTLS server handler.
|
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
IHandler.getConfig()
Returns the configuration object that will be used to configure the
behavior of the associated session.
|
ISessionConfig |
AbstractHandler.getConfig() |
Constructor and Description |
---|
AbstractDatagramHandler(ISessionConfig config)
Constructor creating an unnamed datagram-oriented handler with given session
configuration object.
|
AbstractDatagramHandler(String name,
ISessionConfig config)
Constructor creating a named datagram-oriented handler with given session
configuration object.
|
AbstractHandler(ISessionConfig config)
Default constructor creating an unnamed handler with given session
configuration object.
|
AbstractHandler(String name,
ISessionConfig config)
Constructor creating a named handler with given session configuration object.
|
AbstractStreamHandler(ISessionConfig config)
Constructor creating an unnamed stream-oriented handler with given session
configuration object.
|
AbstractStreamHandler(String name,
ISessionConfig config)
Constructor creating a named stream-oriented handler with given session
configuration object.
|
Constructor and Description |
---|
AbstractProxyHandler(ISessionConfig config,
ISessionStructureFactory factory)
Constructs a proxy connection handler with the default (10 seconds)
connection timeout, configuration and factory.
|
AbstractSocksProxyHandler(InetSocketAddress address,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS proxy connection handler with the specified destination
address, the default (10 seconds) connection timeout, configuration and factory.
|
HttpProxyHandler(URI uri,
ISessionConfig config)
Constructs an HTTP tunnel connection handler with the default (10 seconds)
connection timeout and configuration.
|
HttpProxyHandler(URI uri,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs an HTTP tunnel connection handler with the default (10 seconds)
connection timeout, configuration and factory.
|
HttpProxyHandler(URI uri,
String username,
String password,
ISessionConfig config)
Constructs an HTTP tunnel connection handler with the default (10 seconds)
connection timeout, user's name/password for the 'Basic' HTTP authentication
scheme and configuration.
|
HttpProxyHandler(URI uri,
String username,
String password,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs an HTTP tunnel connection handler with the default (10 seconds)
connection timeout, user's name/password for the 'Basic' HTTP authentication
scheme, configuration and factory.
|
Socks4ProxyHandler(InetSocketAddress address,
Socks4Command command,
String username,
ISessionConfig config)
Constructs a SOCKS4 proxy connection handler with the specified destination
address, SOCKS4 command, user's name, the default (10 seconds) connection
timeout and configuration.
|
Socks4ProxyHandler(InetSocketAddress address,
Socks4Command command,
String username,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS4 proxy connection handler with the specified destination
address, SOCKS4 command, user's name, the default (10 seconds) connection
timeout, configuration and factory.
|
Socks4ProxyHandler(InetSocketAddress address,
String username,
ISessionConfig config)
Constructs a SOCKS4 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, user's
name, the default (10 seconds) connection timeout and configuration. |
Socks4ProxyHandler(InetSocketAddress address,
String username,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS4 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, user's
name, the default (10 seconds) connection timeout, configuration and factory. |
Socks5ProxyHandler(InetSocketAddress address,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, the
default (10 seconds) connection timeout and configuration. |
Socks5ProxyHandler(InetSocketAddress address,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, the
default (10 seconds) connection timeout, configuration and factory. |
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, the default (10 seconds) connection timeout and
configuration.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, the default (10 seconds) connection timeout,
configuration and factory.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
String username,
String password,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, user's name/password, the default (10 seconds)
connection timeout and configuration.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
String username,
String password,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, user's name/password, the default (10 seconds)
connection timeout, configuration and factory.
|
Socks5ProxyHandler(InetSocketAddress address,
String username,
String password,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, user's
name/password, the default (10 seconds) connection timeout and configuration. |
Socks5ProxyHandler(InetSocketAddress address,
String username,
String password,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT ) command, user's
name/password, the default (10 seconds) connection timeout, configuration and
factory. |
Modifier and Type | Interface and Description |
---|---|
interface |
ISctpSessionConfig
A configuration for associated SCTP session.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSctpSessionConfig
Default configuration for the SCTP session.
|
class |
DefaultSessionConfig
Default configuration for the session.
|
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
ISession.getConfig()
Gets the configuration of this session.
|
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
ChatClientHandler.getConfig() |
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
DiscardingClientHandler.getConfig() |
Modifier and Type | Class and Description |
---|---|
class |
SessionConfig |
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
SessionHandler.getConfig() |
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
EchoServerHandler.getConfig() |
ISessionConfig |
EchoClientHandler.getConfig() |
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
AbstractFileHandler.getConfig() |
Modifier and Type | Method and Description |
---|---|
ISessionConfig |
HeartbeatHandler.getConfig() |
Modifier and Type | Interface and Description |
---|---|
interface |
IWebSocketSessionConfig
A configuration for associated Web Socket session.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultWebSocketSessionConfig
Default configuration for the Web Socket session.
|
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.