NAME ^

php_sockets.pir - PHP sockets Library

DESCRIPTION ^

Functions ^

resource socket_accept(resource socket)
Accepts a connection on the listening socket fdNOT IMPLEMENTED.
bool socket_bind(resource socket, string addr [, int port])
Binds an open socket to a listening port, port is only specified in AF_INET family.NOT IMPLEMENTED.
void socket_clear_error([resource socket])
Clears the error on the socket or the last error code.NOT IMPLEMENTED.
void socket_close(resource socket)
Closes a file descriptorNOT IMPLEMENTED.
bool socket_connect(resource socket, string addr [, int port])
Opens a connection to addr:port on the socket specified by socketNOT IMPLEMENTED.
resource socket_create(int domain, int type, int protocol)
Creates an endpoint for communication in the domain specified by domain, of type specified by typeNOT IMPLEMENTED.
resource socket_create_listen(int port[, int backlog])
Opens a socket on port to accept connectionsNOT IMPLEMENTED.
bool socket_create_pair(int domain, int type, int protocol, array &fd)
Creates a pair of indistinguishable sockets and stores them in fds.NOT IMPLEMENTED.
mixed socket_get_option(resource socket, int level, int optname)
Gets socket options for the socketNOT IMPLEMENTED.
bool socket_getpeername(resource socket, string &addr[, int &port])
Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type.NOT IMPLEMENTED.
bool socket_getsockname(resource socket, string &addr[, int &port])
Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type.NOT IMPLEMENTED.
int socket_last_error([resource socket])
Returns the last socket error (either the last used or the provided socket resource)NOT IMPLEMENTED.
bool socket_listen(resource socket[, int backlog])
Sets the maximum number of connections allowed to be waited for on the socket specified by fdNOT IMPLEMENTED.
string socket_read(resource socket, int length [, int type])
Reads a maximum of length bytes from socketNOT IMPLEMENTED.
int socket_recv(resource socket, string &buf, int len, int flags)
Receives data from a connected socketNOT IMPLEMENTED.
int socket_recvfrom(resource socket, string &buf, int len, int flags, string &name [, int &port])
Receives data from a socket, connected or notNOT IMPLEMENTED.
int socket_select(array &read_fds, array &write_fds, array &except_fds, int tv_sec[, int tv_usec])
Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usecNOT IMPLEMENTED.
int socket_send(resource socket, string buf, int len, int flags)
Sends data to a connected socketNOT IMPLEMENTED.
int socket_sendto(resource socket, string buf, int len, int flags, string addr [, int port])
Sends a message to a socket, whether it is connected or notNOT IMPLEMENTED.
bool socket_set_block(resource socket)
Sets blocking mode on a socket resourceNOT IMPLEMENTED.
bool socket_set_nonblock(resource socket)
Sets nonblocking mode on a socket resourceNOT IMPLEMENTED.
bool socket_set_option(resource socket, int level, int optname, int|array optval)
Sets socket options for the socketNOT IMPLEMENTED.
bool socket_shutdown(resource socket[, int how])
Shuts down a socket for receiving, sending, or both.NOT IMPLEMENTED.
string socket_strerror(int errno)
Returns a string describing an errorNOT IMPLEMENTED.
int socket_write(resource socket, string buf[, int length])
Writes the buffer to the socket resource, length is optionalNOT IMPLEMENTED.


parrot