Searched defs:socket (Results 1 - 7 of 7) sorted by relevance

/PHP_5_4/ext/sockets/
H A Dsockets.c65 # include <sys/socket.h>
117 #define PHP_SOCKET_ERROR(socket, msg, errn) \
120 (socket)->error = _err; \
146 ZEND_ARG_INFO(0, socket)
150 ZEND_ARG_INFO(0, socket)
154 ZEND_ARG_INFO(0, socket)
158 ZEND_ARG_INFO(0, socket)
163 ZEND_ARG_INFO(0, socket)
167 ZEND_ARG_INFO(0, socket)
173 ZEND_ARG_INFO(0, socket)
2560 PHP_SOCKET socket; /* fd */ local
[all...]
/PHP_5_4/main/
H A Dphp_network.h71 #include <sys/socket.h>
75 * since <sys/socket.h> defines them. */
274 php_socket_t socket; member in struct:_php_netstream_data_t
286 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC );
304 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
308 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
H A Dnetwork.c41 #include <sys/socket.h>
63 #include <sys/socket.h>
199 s = socket(PF_INET6, SOCK_DGRAM, 0);
295 /* Connect to a socket using an interruptible connect with optional timeout.
297 * enable non-blocking mode on the socket.
412 * Returns the bound socket, or -1 on failure.
434 /* create a socket for this address */
435 sock = socket(sa->sa_family, socktype, 0);
696 /* Accept a client connection from a server socket,
755 * enable non-blocking mode on the socket
1030 _php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/mysql/
H A Dphp_mysql.c52 # include <sys/socket.h>
722 char *user=NULL, *passwd=NULL, *host_and_port=NULL, *socket=NULL, *tmp=NULL, *host=NULL; local
744 socket = MySG(default_socket);
827 socket=tmp;
830 socket = tmp;
883 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
885 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL)
931 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
933 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL)
1010 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flag
[all...]
/PHP_5_4/ext/mysqli/
H A Dmysqli_nonapi.c64 char *hostname = NULL, *username=NULL, *passwd=NULL, *dbname=NULL, *socket=NULL; local
88 hostname = username = dbname = passwd = socket = NULL;
92 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) {
110 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len,
127 if (!socket_len || !socket) {
128 socket = MyG(default_socket);
158 hash_len = spprintf(&hash_key, 0, "mysqli_%s_%s%ld%s%s%s", SAFE_STR(hostname), SAFE_STR(socket),
239 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL)
242 port, socket, flags TSRMLS_CC) == NULL)
309 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
[all...]
H A Dphp_mysqli_structs.h139 int socket; member in struct:__anon5
/PHP_5_4/ext/standard/
H A Dstreamsfuncs.c49 Creates a pair of connected, indistinguishable socket streams */
174 Create a server socket bound to localaddress */
239 Accept a client connection from a server socket */
296 Returns either the locally bound or remote name for a socket stream */
324 Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format */
353 Receives data from a socket stream */
544 Retrieves list of registered socket transports */
1349 /* {{{ proto bool stream_set_blocking(resource socket, int mode)
1350 Set blocking/non-blocking mode on a socket or stream */
1380 zval *socket; local
[all...]

Completed in 12 milliseconds