Module
Node.Datagram
- Package
- purescript-node-datagram
- Repository
- brandonhamilton/purescript-node-datagram
This module defines low-level bindings to the Node dgram module.
#SocketInfo Source
type SocketInfo = { address :: String, family :: String, port :: Int }
Socket address information
#createSocket Source
createSocket :: SocketType -> Maybe Boolean -> Effect Socket
Creates a Socket data structure
#setBroadcast Source
setBroadcast :: Socket -> Boolean -> Effect Unit
Sets or clears the SO_BROADCAST socket option
#setMulticastLoopback Source
setMulticastLoopback :: Socket -> Boolean -> Effect Unit
Sets or clears the IP_MULTICAST_LOOP socket option
#setMulticastTTL Source
setMulticastTTL :: Socket -> Int -> Effect Unit
Sets the IP_MULTICAST_TTL
socket option
- Modules
- Node.
Datagram