org.http4s.blaze.channel.ServerChannelFactory.scala Maven / Gradle / Ivy
package org.http4s.blaze.channel
import java.nio.channels.NetworkChannel
import java.net.SocketAddress
import com.typesafe.scalalogging.slf4j.Logging
/**
* @author Bryce Anderson
* Created on 1/23/14
*/
trait ServerChannelFactory[C <: NetworkChannel] {
def bind(localAddress: SocketAddress = null): ServerChannel
// Intended to be overridden in order to allow the reject of connections
protected def acceptConnection(channel: C): Boolean = true
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy