glisten/internal/listener

Types

pub type Message {
  Info(caller: Subject(State))
}

Constructors

  • Info(caller: Subject(State))
pub type State {
  State(
    listen_socket: ListenSocket,
    port: Int,
    ip_address: IpAddress,
  )
}

Constructors

  • State(
      listen_socket: ListenSocket,
      port: Int,
      ip_address: IpAddress,
    )

Functions

pub fn start(
  port: Int,
  transport: Transport,
  options: List(TcpOption),
) -> Result(Subject(Message), StartError)
Search Document