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

/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c46 # 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) == 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) == NULL)
1029 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flag
[all...]
/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) == 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)
2219 socket_import_file_descriptor(PHP_SOCKET socket) argument
2273 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 */
1277 /* {{{ proto bool stream_set_blocking(resource socket, int mode)
1278 Set blocking/non-blocking mode on a socket or stream */
1305 zval *socket; local
[all...]
/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) 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 );
312 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC)
316 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC)
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c37 # include <sys/socket.h>
836 static void phpdbg_remote_close(int socket, FILE *stream) { argument
837 if (socket >= 0) {
838 phpdbg_close_socket(socket);
847 static int phpdbg_remote_init(const char* address, unsigned short port, int server, int *socket, FILE **stream) { argument
848 phpdbg_remote_close(*socket, *stream);
863 *socket = accept(server, (struct sockaddr *) &address, &size);
870 dup2(*socket, fileno(stdout));
871 dup2(*socket, fileno(stdin));
875 *stream = fdopen(*socket, "
1013 int socket = -1; local
[all...]

Completed in 14 milliseconds