Searched refs:socket (Results 1 - 25 of 46) sorted by relevance

12

/PHP_5_3/ext/standard/tests/http/
H A Dserver.inc12 * $socket_string is the socket to create and listen on (e.g. tcp://127.0.0.1:1234)
/PHP_5_3/ext/standard/tests/mail/
H A Dmail_skipif.inc8 $socket = socket_create(AF_INET, SOCK_RAW, 1);
9 socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 10, 'usec' => 10));
11 socket_connect($socket, "localhost", 143) or die ("skip can't socket to mail server");
/PHP_5_3/netware/
H A Dsendmail_nw.h9 #include <sys/socket.h> /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
/PHP_5_3/ext/ftp/tests/
H A Dserver.inc3 $socket = null;
7 for ($i=0; $i<10 && !$socket; ++$i) {
10 $socket = stream_socket_server("tcp://127.0.0.1:$port", $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
17 if (!$socket) {
95 $s = stream_socket_accept($socket);
273 // there are some servers that don't open the ftp-data socket if there's nothing to send
409 fclose($socket);
/PHP_5_3/ext/mysql/tests/
H A Dclean_table.inc5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6 printf("[clean] Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 $host, $myhost, $user, $db, $port, $socket);
H A Dconnect.inc24 function my_mysql_connect($host, $user, $passwd, $db, $port, $socket, $flags = NULL, $persistent = false) {
29 if ($socket)
30 $host = sprintf("%s:%s", $host, $socket);
70 $socket = getenv("MYSQL_TEST_SOCKET") ? getenv("MYSQL_TEST_SOCKET") : null;
73 if ($socket) {
74 ini_set('mysql.default_socket', $socket);
H A Dskipifconnectfailure.inc4 if ($socket)
5 $myhost = sprintf("%s:%s", $host, $socket);
H A Dtable.inc5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6 printf("Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 $host, $myhost, $user, $db, $port, $socket);
/PHP_5_3/ext/mysqli/tests/
H A Dclean_table.inc4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5 printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
6 $host, $user, $db, $port, $socket);
H A Dconnect.inc17 $socket = getenv("MYSQL_TEST_SOCKET") ? getenv("MYSQL_TEST_SOCKET") : null;
20 if ($socket) {
21 ini_set('mysqli.default_socket', $socket);
87 function my_mysqli_connect($host, $user, $passwd, $db, $port, $socket, $enable_env_flags = true) {
94 if (!mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags))
97 $link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
108 function my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags = 0, $enable_env_flags = true) {
114 return mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags);
118 public function __construct($host, $user, $passwd, $db, $port, $socket, $enable_env_flags = true) {
125 $this->real_connect($host, $user, $passwd, $db, $port, $socket,
[all...]
H A Dskipifconnectfailure.inc5 $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
H A Dtable.inc4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5 printf("Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
6 $host, $user, $db, $port, $socket);
/PHP_5_3/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 Dmysqli_report.h29 #include <sys/socket.h>
/PHP_5_3/ext/openssl/
H A Dxp_ssl.c102 /* SSL terminated (but socket may still be active) */
265 if (sslsock->s.socket == -1)
266 sslsock->s.socket = SOCK_ERR;
268 if (sslsock->s.socket != SOCK_ERR) {
271 shutdown(sslsock->s.socket, SHUT_RD);
274 * Essentially, we are waiting for the socket to become writeable, which means
280 n = php_pollfd_for_ms(sslsock->s.socket, POLLOUT, 500);
283 closesocket(sslsock->s.socket);
284 sslsock->s.socket = SOCK_ERR;
402 if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) {
[all...]
/PHP_5_3/ext/sockets/
H A Dphp_sockets.h36 #include <sys/socket.h>
H A Dsockets.c61 # include <sys/socket.h>
108 #define PHP_SOCKET_ERROR(socket,msg,errn) socket->error = errn; \
130 ZEND_ARG_INFO(0, socket)
134 ZEND_ARG_INFO(0, socket)
138 ZEND_ARG_INFO(0, socket)
142 ZEND_ARG_INFO(0, socket)
147 ZEND_ARG_INFO(0, socket)
151 ZEND_ARG_INFO(0, socket)
157 ZEND_ARG_INFO(0, socket)
[all...]
/PHP_5_3/main/
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
1028 _php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
[all...]
H A Dphp_network.h71 #include <sys/socket.h>
75 * since <sys/socket.h> defines them. */
269 php_socket_t socket; member in struct:_php_netstream_data_t
281 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC );
299 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
303 #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 Dphp_open_temporary_file.c36 #include <sys/socket.h>
41 #include <sys/socket.h>
/PHP_5_3/main/streams/
H A Dxp_socket.c53 /* {{{ Generic socket stream operations */
60 if (sock->socket == -1) {
70 didwrite = send(sock->socket, buf, count, (sock->is_blocked && ptimeout) ? MSG_DONTWAIT : 0);
82 retval = php_pollfd_for(sock->socket, POLLOUT, ptimeout);
119 if (sock->socket == -1) {
131 retval = php_pollfd_for(sock->socket, PHP_POLLREADABLE, ptimeout);
149 if (sock->socket == -1) {
159 nr_bytes = recv(sock->socket, buf, count, (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTWAIT : 0);
185 if (sock->socket == -1)
186 sock->socket
[all...]
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_sockets.h9 #include <sys/socket.h>
H A Dfpm_signals.c10 #include <sys/socket.h>
146 /* closing fastcgi listening socket will force fcgi_accept() exit immediately */
148 if (0 > socket(AF_UNIX, SOCK_STREAM, 0)) {
149 zlog(ZLOG_WARNING, "failed to create a new socket");
H A Dfpm_sockets.c12 #include <sys/socket.h>
77 } else { /* on PARENT EXEC we want socket fds to be inherited through environment variable */
140 case FPM_STORE_SOCKET : /* inherited socket */
172 sock = socket(sa->sa_family, SOCK_STREAM, 0);
175 zlog(ZLOG_SYSERROR, "failed to create new listening socket: socket()");
180 zlog(ZLOG_WARNING, "failed to change socket attribute");
194 zlog(ZLOG_SYSERROR, "unable to bind listening socket for address '%s'", wp->config->listen_address);
209 zlog(ZLOG_SYSERROR, "failed to chown() the socket '%s'", wp->config->listen_address);
334 zlog(ZLOG_NOTICE, "using inherited socket f
[all...]
/PHP_5_3/win32/
H A Dsockets.c45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);

Completed in 29 milliseconds

12