goose/stratus/internal/tcp
Values
pub fn connect(
address: charlist.Charlist,
port: Int,
options: List(#(atom.Atom, dynamic.Dynamic)),
timeout: Int,
) -> Result(socket.Socket, socket.SocketReason)
pub fn controlling_process(
socket: socket.Socket,
new_owner: process.Pid,
) -> Result(Nil, socket.SocketReason)
pub fn receive(
socket: socket.Socket,
length: Int,
) -> Result(BitArray, socket.SocketReason)
pub fn receive_timeout(
socket: socket.Socket,
length: Int,
timeout: Int,
) -> Result(BitArray, socket.SocketReason)
pub fn send(
socket: socket.Socket,
packet: bytes_tree.BytesTree,
) -> Result(Nil, socket.SocketReason)
pub fn set_opts(
socket: socket.Socket,
opts: List(#(atom.Atom, dynamic.Dynamic)),
) -> Result(Nil, socket.SocketReason)
pub fn shutdown(
socket: socket.Socket,
how: socket.Shutdown,
) -> Result(Nil, socket.SocketReason)