public class SocketModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
SocketModule() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<StringValue,Value> |
getConstMap()
Returns the constants defined by this module.
|
static boolean |
socket_bind(Env env,
SocketInputOutput socket,
StringValue address,
int port) |
static void |
socket_close(Env env,
SocketInputOutput socket) |
static boolean |
socket_connect(Env env,
SocketInputOutput socket,
StringValue address,
int port) |
static SocketInputOutput |
socket_create(Env env,
int domain,
int type,
int protocol) |
static Value |
socket_get_status(Env env,
BinaryStream stream) |
static Value |
socket_read(Env env,
SocketInputOutput socket,
int length,
int type) |
static boolean |
socket_set_timeout(Env env,
Value stream,
int seconds,
int milliseconds) |
boolean |
socket_shutdown(Env env,
SocketInputOutput file,
int how)
Closes a socket.
|
static Value |
socket_write(Env env,
SocketInputOutput socket,
java.io.InputStream is,
int length) |
addConstant, addConstant, addConstant, getIniDefinitions, getLoadedExtensions
public java.util.Map<StringValue,Value> getConstMap()
getConstMap
in interface QuercusModule
getConstMap
in class AbstractQuercusModule
public static SocketInputOutput socket_create(Env env, int domain, int type, int protocol)
public static boolean socket_bind(Env env, SocketInputOutput socket, StringValue address, int port)
public static void socket_close(Env env, SocketInputOutput socket)
public static boolean socket_connect(Env env, SocketInputOutput socket, StringValue address, int port)
public static Value socket_get_status(Env env, BinaryStream stream)
public static Value socket_read(Env env, SocketInputOutput socket, int length, int type)
public static boolean socket_set_timeout(Env env, Value stream, int seconds, int milliseconds)
public static Value socket_write(Env env, SocketInputOutput socket, java.io.InputStream is, int length)
public boolean socket_shutdown(Env env, SocketInputOutput file, int how)
how
- 0 = read, 1 = write, 2 = both