use of net.i2p.util.InternalServerSocket in project i2p.i2p by i2p.
the class InternalSocketRunner method run.
@Override
public final void run() {
try {
this.ss = new InternalServerSocket(this.port);
this.open = true;
while (this.open) {
Socket s = this.ss.accept();
this.client.manageConnection(s);
}
} catch (IOException ex) {
if (this.open) {
Log log = new Log(InternalSocketRunner.class);
log.error("Error listening for internal connections on port " + this.port, ex);
stopRunning();
}
}
}
Aggregations