glisten/socket/transport

Types

pub type Transport {
  Ssl(
    accept: Accept,
    accept_timeout: AcceptTimeout,
    close: Close,
    controlling_process: ControllingProcess,
    handshake: Handshake,
    listen: Listen,
    negotiated_protocol: NegotiatedProtocol,
    receive: Receive,
    receive_timeout: ReceiveTimeout,
    send: Send,
    set_opts: SetOpts,
    shutdown: Shutdown,
    socket_info: SocketInfo,
  )
  Tcp(
    accept: Accept,
    accept_timeout: AcceptTimeout,
    close: Close,
    controlling_process: ControllingProcess,
    handshake: Handshake,
    listen: Listen,
    negotiated_protocol: NegotiatedProtocol,
    receive: Receive,
    receive_timeout: ReceiveTimeout,
    send: Send,
    set_opts: SetOpts,
    shutdown: Shutdown,
    socket_info: SocketInfo,
  )
}

Constructors

  • Ssl(
      accept: Accept,
      accept_timeout: AcceptTimeout,
      close: Close,
      controlling_process: ControllingProcess,
      handshake: Handshake,
      listen: Listen,
      negotiated_protocol: NegotiatedProtocol,
      receive: Receive,
      receive_timeout: ReceiveTimeout,
      send: Send,
      set_opts: SetOpts,
      shutdown: Shutdown,
      socket_info: SocketInfo,
    )
  • Tcp(
      accept: Accept,
      accept_timeout: AcceptTimeout,
      close: Close,
      controlling_process: ControllingProcess,
      handshake: Handshake,
      listen: Listen,
      negotiated_protocol: NegotiatedProtocol,
      receive: Receive,
      receive_timeout: ReceiveTimeout,
      send: Send,
      set_opts: SetOpts,
      shutdown: Shutdown,
      socket_info: SocketInfo,
    )

Functions

pub external fn socket_info(socket: Socket) -> Map(a, b)
pub fn ssl() -> Transport
pub fn tcp() -> Transport
Search Document