Module

Erl.Kernel.Tcp

#Options

type Options :: Row Type -> Row Typetype Options r = CommonOptions (delay_send :: Maybe Boolean, exit_on_close :: Maybe Boolean, high_watermark :: Maybe NonNegInt, keepalive :: Maybe Boolean, linger :: Maybe Linger, low_watermark :: Maybe NonNegInt, nodelay :: Maybe Boolean, packet :: Maybe SocketPacket, packet_size :: Maybe NonNegInt, send_timeout :: Maybe Milliseconds, send_timeout_close :: Maybe Boolean, show_econnreset :: Maybe Boolean | r)

#ConnectListenOptions

type ConnectListenOptions :: Row Type -> Row Typetype ConnectListenOptions r = Options (bind_to_device :: Maybe Binary, family :: Maybe AddressFamily, fd :: Maybe NonNegInt, ifaddr :: Maybe SocketAddress, ip :: Maybe SocketAddress, netns :: Maybe FileName, port :: Maybe Port | r)

#ListenOptions

#Linger

newtype Linger

Constructors

Instances

#ShutdownHow

#defaultConnectListenOptions

#close

close :: forall socketMessageBehaviour socketType. TcpSocket socketMessageBehaviour socketType -> Effect Unit

#recv

recv :: forall socketMessageBehaviour. TcpSocket socketMessageBehaviour ConnectedSocket -> NonNegInt -> Timeout -> Effect (Either ActiveError Binary)

#send

send :: forall socketMessageBehaviour. TcpSocket socketMessageBehaviour ConnectedSocket -> IOData -> Effect (Either SendError Unit)

#shutdown

shutdown :: forall socketMessageBehaviour socketType. TcpSocket socketMessageBehaviour socketType -> ShutdownHow -> Effect (Either PosixError Unit)

#setopts

setopts :: forall options socketMessageBehaviour socketType. Union (ForcedOptions ()) options (ForcedOptions options) => Nub (ForcedOptions options) (ForcedOptions options) => ConvertOptionsWithDefaults OptionToMaybe (Record (Options ())) (Record (ForcedOptions options)) (Record (ForcedOptions (Options ()))) => OptionsValid socketMessageBehaviour options => TcpSocket socketMessageBehaviour socketType -> Record options -> Effect (Either PosixError Unit)

Modules