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

/PHP_TRUNK/main/
H A Dnetwork.c44 #include <sys/socket.h>
66 #include <sys/socket.h>
202 s = socket(PF_INET6, SOCK_DGRAM, 0);
298 /* Connect to a socket using an interruptible connect with optional timeout.
300 * enable non-blocking mode on the socket.
415 * Returns the bound socket, or -1 on failure.
438 /* create a socket for this address */
439 sock = socket(sa->sa_family, socktype, 0);
704 /* Accept a client connection from a server socket,
763 * enable non-blocking mode on the socket
1085 _php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
[all...]
H A Dphp_network.h74 #include <sys/socket.h>
78 * since <sys/socket.h> defines them. */
282 php_socket_t socket; member in struct:_php_netstream_data_t
294 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC );
312 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
316 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_nonapi.c64 char *hostname = NULL, *username=NULL, *passwd=NULL, *dbname=NULL, *socket=NULL; local
87 hostname = username = dbname = passwd = socket = NULL;
91 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) {
109 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len,
126 if (!socket_len || !socket) {
127 socket = MyG(default_socket);
157 hash_key = strpprintf(0, "mysqli_%s_%s%ld%s%s%s", SAFE_STR(hostname), SAFE_STR(socket),
238 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL)
241 port, socket, flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
304 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockets.c44 # include <sys/socket.h>
115 ZEND_ARG_INFO(0, socket)
119 ZEND_ARG_INFO(0, socket)
123 ZEND_ARG_INFO(0, socket)
127 ZEND_ARG_INFO(0, socket)
132 ZEND_ARG_INFO(0, socket)
136 ZEND_ARG_INFO(0, socket)
142 ZEND_ARG_INFO(0, socket)
148 ZEND_ARG_INFO(0, socket)
154 ZEND_ARG_INFO(0, socket)
2264 PHP_SOCKET socket; /* fd */ local
[all...]
/PHP_TRUNK/ext/standard/
H A Dstreamsfuncs.c51 Creates a pair of connected, indistinguishable socket streams */
175 Create a server socket bound to localaddress */
239 Accept a client connection from a server socket */
293 Returns either the locally bound or remote name for a socket stream */
319 Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format */
348 Receives data from a socket stream */
531 Retrieves list of registered socket transports */
1273 /* {{{ proto bool stream_set_blocking(resource socket, int mode)
1274 Set blocking/non-blocking mode on a socket or stream */
1304 zval *socket; local
[all...]
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c52 # include <sys/socket.h>
726 char *host_and_port = NULL, *socket = NULL; local
753 socket = MySG(default_socket);
838 socket=tmp;
841 socket = tmp;
898 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
900 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
951 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
953 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
1029 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flag
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c35 # include <sys/socket.h>
717 int fd = socket(AF_INET, SOCK_STREAM, 0);
763 static inline void phpdbg_close_sockets(int (*socket)[2], FILE *streams[2]) /* {{{ */ argument
765 if ((*socket)[0] >= 0) {
767 (*socket)[0], SHUT_RDWR);
768 close((*socket)[0]);
775 if ((*socket)[1] >= 0) {
777 (*socket)[1], SHUT_RDWR);
778 close((*socket)[1]);
788 int phpdbg_open_sockets(char *address, int port[2], int (*listen)[2], int (*socket)[ argument
943 int socket[2]; local
[all...]

Completed in 13 milliseconds