java.lang.Object
net.i2p.i2pcontrol.SocketController
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Field Details
PROP_ALLOWED_HOSTS
Constructor Details
SocketController
RouterApp (new way)- Parameters:
ctx- the router context supplying the log manager and config directorymgr- the client app manager notified of state changes, or null when run outside the client app framework- Throws:
IOException- declared by the client app instantiation contract, though this constructor body performs no failing I/O
Method Details
startup
shutdown
getState
Current state of the managed client app.getName
getDisplayName
Display name of the client app.- Specified by:
getDisplayNamein interfaceClientApp- Returns:
- "I2PControl-Socket"
buildServer
Builds a new server. Used for changing ports during operation and such. Does NOT start the server. Must call start() on the returned server.- Returns:
- Server - A new server built from current configuration.
- Throws:
IOException- if the configured listen address cannot be resolved, the configured port is already bound, or the configuration file cannot be written back