Module osp_socket

Socket operations for OSP programs.

Copyright © 2009 Jacob Torrey <torreyji@clarkson.edu>

Authors: Jacob Torrey (torreyji@clarkson.edu).

Description

Socket operations for OSP programs

Function Index

close/1Closes a socket (protocol inspecific).
recv/2A 'safe' receive.
send/2A type/protocol inspecific send function.
sendf/3A formatted send that uses the same arguments as io:format.

Function Details

close/1

close(X1::genericSocket()) -> ok

Closes a socket (protocol inspecific)

recv/2

recv(X1::genericSocket(), Len::int()) -> binary() | {error, closed}

A 'safe' receive. A length of 0 will get a 'line' of data

send/2

send(X1::genericSock(), Data::any()) -> ok

A type/protocol inspecific send function

sendf/3

sendf(Sock::genericSocket(), Template::list(), Args::list()) -> ok

A formatted send that uses the same arguments as io:format


Generated by EDoc, Oct 30 2009, 20:13:44.