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

12

/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>
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...]
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)
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.
437 /* create a socket for this address */
438 sock = socket(sa->sa_family, socktype, 0);
699 /* Accept a client connection from a server socket,
758 * enable non-blocking mode on the socket
1033 _php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_6/win32/
H A Dsockets.c45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);
/PHP_5_6/ext/mysqli/
H A Dmysqli_nonapi.c65 char *hostname = NULL, *username=NULL, *passwd=NULL, *dbname=NULL, *socket=NULL; local
89 hostname = username = dbname = passwd = socket = NULL;
93 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) {
111 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len,
128 if (!socket_len || !socket) {
129 socket = MyG(default_socket);
159 hash_len = spprintf(&hash_key, 0, "mysqli_%s_%s%ld%s%s%s", SAFE_STR(hostname), SAFE_STR(socket),
240 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL)
243 port, socket, flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
307 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
[all...]
/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/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...]
/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)) {
1815 if (sock->socket == -1) {
1827 retval = php_pollfd_for(sock->socket, PHP_POLLREADABLE, ptimeout);
1851 socket. If we don't poll for readability first this operation has the potential
1922 if (sslsock->s.socket
[all...]

Completed in 136 milliseconds

12