parrotcode: Socket I/O API | |
Contents | C |
src/io/socket_api.c - Socket I/O API
These are the primary interface functions for working with socket objects.
INTVAL Parrot_io_poll
*pmc
for the events in which
every sec
seconds + usec
microseconds.
PMC *Parrot_io_socket
INTVAL Parrot_io_recv
*pmc
in *buf
.
Returns -1
if it fails.
INTVAL Parrot_io_send
*buf
to the connected socket *pmc
.
Returns -1
if it cannot send the message.
INTVAL Parrot_io_connect
*pmc
to *address
.
Returns -1
on failure.
INTVAL Parrot_io_bind
*pmc
's socket to the local address and port specified by *address
.
Returns -1
on failure.
INTVAL Parrot_io_listen
*pmc
.
Returns -1
on failure.
PMC *Parrot_io_accept
ParrotIO
socket.
Returns NULL
on failure.io/api.c
|