public class SimpleServerEndpointFactory extends Object implements EndpointFactory
ConnectionFactory.| Constructor and Description |
|---|
SimpleServerEndpointFactory(ch.ethz.inf.vs.elements.ConnectorFactory secureConnectorFactory)
Initializes the factory with collaborators.
|
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
getEndpoint(NetworkConfig config,
InetSocketAddress address)
Gets a communication endpoint bound to a given IP address and port.
|
Endpoint |
getSecureEndpoint(NetworkConfig config,
InetSocketAddress address)
Gets an Endpoint that uses DTLS for secure communication.
|
public SimpleServerEndpointFactory(ch.ethz.inf.vs.elements.ConnectorFactory secureConnectorFactory)
secureConnectorFactory - the factory to use for creating Connectors
implementing DTLS for secure Endpoints or null if this factory
does not support the creation of secure Endpoints.public final Endpoint getEndpoint(NetworkConfig config, InetSocketAddress address)
EndpointFactorygetEndpoint in interface EndpointFactoryconfig - the configuration properties to be used for creating the
endpoint or null if default values should be usedaddress - the IP address and port to bind topublic final Endpoint getSecureEndpoint(NetworkConfig config, InetSocketAddress address)
EndpointFactorygetSecureEndpoint in interface EndpointFactoryconfig - the configuration properties to be used for creating the
endpoint or null if default values should be usedaddress - the addressnull if this factory
does not support secure endpointsCopyright © 2014 Institute for Pervasive Computing, ETH Zurich. All rights reserved.