Package dev.relism.flash.transport
Class ListenerBinder
java.lang.Object
dev.relism.flash.transport.ListenerBinder
Turns a
FlashConfiguration.Listener into a bound ServerSocket. Sole
responsibility: binding — not accepting, not connection handling.
A TLS listener gets its ServerSocket from TlsConfig.serverSocketFactory()
instead of new ServerSocket(), and its protocol/client-auth/cipher parameters from
TlsConfig.applyTo(javax.net.ssl.SSLServerSocket); reuse-address, receive buffer size, backlog and the bind call
itself are identical either way. TLS only changes which bytes come out of accept();
it never changes how the accept loop, or anything downstream of it, treats them.
-
Method Summary
-
Method Details
-
bind
- Throws:
IOException
-