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

123

/PHP_5_6/ext/sockets/
H A Dconversions.h8 # include <sys/socket.h>
H A Dphp_sockets.h45 #include <sys/socket.h>
76 #define PHP_SOCKET_ERROR(socket, msg, errn) \
79 (socket)->error = _err; \
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)
2267 PHP_SOCKET socket; /* fd */ local
[all...]
/PHP_5_6/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_6/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_6/netware/
H A Dsendmail_nw.h9 #include <sys/socket.h> /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
/PHP_5_6/sapi/fpm/fpm/
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>
54 } else { /* on PARENT EXEC we want socket fds to be inherited through environment variable */
126 case FPM_STORE_SOCKET : /* inherited socket */
158 sock = socket(sa->sa_family, SOCK_STREAM, 0);
161 zlog(ZLOG_SYSERROR, "failed to create new listening socket: socket()");
166 zlog(ZLOG_WARNING, "failed to change socket attribute");
180 zlog(ZLOG_SYSERROR, "unable to bind listening socket for address '%s'", wp->config->listen_address);
195 zlog(ZLOG_SYSERROR, "failed to chown() the socket '%s'", wp->config->listen_address);
335 zlog(ZLOG_NOTICE, "using inherited socket f
[all...]
H A Dfpm_sockets.h9 #include <sys/socket.h>
/PHP_5_6/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_6/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_6/main/
H A Dphp_open_temporary_file.c36 #include <sys/socket.h>
41 #include <sys/socket.h>
H A Dphp_network.h73 #include <sys/socket.h>
77 * since <sys/socket.h> defines them. */
276 php_socket_t socket; member in struct:_php_netstream_data_t
288 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC );
306 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
310 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
/PHP_5_6/win32/
H A Dsockets.c45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);
/PHP_5_6/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_6/ext/openssl/
H A Dxp_ssl.c158 /* SSL terminated (but socket may still be active) */
1512 if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) {
1659 if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC)) {
1701 /* wait until something interesting happens in the socket. It may be a
1714 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ?
1722 if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocked TSRMLS_CC)) {
1876 if (sslsock->s.socket == -1)
1877 sslsock->s.socket = SOCK_ERR;
1879 if (sslsock->s.socket != SOCK_ERR) {
1882 shutdown(sslsock->s.socket, SHUT_R
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_io.c38 #include <sys/socket.h>
287 if((sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol)) == -1) {
291 wrote = sprintf(buf, "Unable to create socket");
312 if (socket >= 0) {
H A Dphpdbg.c37 # include <sys/socket.h>
868 static void phpdbg_remote_close(int socket, FILE *stream) { argument
869 if (socket >= 0) {
870 phpdbg_close_socket(socket);
879 static int phpdbg_remote_init(const char* address, unsigned short port, int server, int *socket, FILE **stream TSRMLS_DC) { argument
880 phpdbg_remote_close(*socket, *stream);
895 *socket = accept(server, (struct sockaddr *) &address, &size);
902 dup2(*socket, fileno(stdout));
903 dup2(*socket, fileno(stdin));
907 *stream = fdopen(*socket, "
1048 int socket = -1; local
[all...]
H A Dphpdbg_rinit_hook.c58 int s = socket(AF_UNIX, SOCK_STREAM, 0);
66 zend_error(E_ERROR, "Unable to connect to UNIX domain socket at %s defined by phpdbg.path ini setting. Reason: %s", PHPDBG_WG(path), strerror(errno));

Completed in 46 milliseconds

123