Searched defs:port (Results 1 - 24 of 24) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Durl.h28 unsigned short port; member in struct:php_url
H A Dfsock.c36 zend_long port = -1; local
54 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
59 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port);
62 if (port > 0) {
63 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port);
91 if (port > 0) {
95 php_error_docref(NULL, E_WARNING, "unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : ZSTR_VAL(errstr));
127 /* {{{ proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
135 /* {{{ proto resource pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
H A Dbasic_functions.c781 ZEND_ARG_INFO(0, port)
1386 ZEND_ARG_INFO(0, port)
1394 ZEND_ARG_INFO(0, port)
4636 2 = send via tcp/ip to 3rd parameter (name or ip:port)
5538 Returns port associated with service. Protocol must be "tcp" or "udp" */
5570 /* {{{ proto string getservbyport(int port, string protocol)
5571 Returns service name associated with port. Protocol must be "tcp" or "udp" */
5576 zend_long port; local
5579 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls", &port, &proto, &proto_len) == FAILURE) {
5583 serv = getservbyport(htons((unsigned short) port), prot
[all...]
H A Durl.c133 /* check if the data we get is a port this allows us to
179 } else if (e) { /* no scheme; starts with colon: look for port */
189 zend_long port; local
192 port = ZEND_STRTOL(port_buf, NULL, 10);
193 if (port > 0 && port <= 65535) {
194 ret->port = (unsigned short) port;
260 /* check for port */
273 if (!ret->port) {
282 zend_long port; local
[all...]
/PHP_TRUNK/
H A Dserver-tests.php299 if (!isset($this->urlparts['port'])) {
300 $this->urlparts['port'] = 80;
337 $fullpath = 'http://'.$this->urlparts['host'].':'.$this->urlparts['port'].$fullpath;
365 $port = $this->urlparts['port']; variable
368 $port = isset($this->options['proxy_port'])?$this->options['proxy_port']:8080; variable
372 $fp = fsockopen($host, $port, $this->errno, $this->errmsg, $this->timeout);
374 $fp = fsockopen($host, $port, $this->errno, $this->errmsg);
377 $this->errmsg = "Connect Error to $host:$port";
H A Drun-tests.php992 if (empty($proxy['port'])) {
993 $proxy['port'] = 80;
995 $port = $proxy['port']; variable
999 $port = empty($url_bits['port']) ? 80 : $port = $url_bits['port']; variable
1005 $fs = fsockopen($host, $port, $errno, $errstr, 10);
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c547 unsigned int port = 3306; local
553 { "port", "3306", 0 },
749 port = atoi(vars[3].optval);
771 port, unix_socket, connect_opts, MYSQLND_CLIENT_NO_FLAG) == NULL) {
773 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_sockets.c257 int port = 0; local
261 if (port_str) { /* this is host:port pair */
263 port = atoi(port_str);
265 } else if (strlen(dup_address) == strspn(dup_address, "0123456789")) { /* this is port */
266 port = atoi(dup_address);
272 if (port == 0) {
273 zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);
/PHP_TRUNK/ext/ftp/
H A Dphp_ftp.c50 ZEND_ARG_INFO(0, port)
57 ZEND_ARG_INFO(0, port)
356 /* {{{ proto resource ftp_connect(string host [, int port [, int timeout]])
363 zend_long port = 0; local
366 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
376 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) {
392 /* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]])
399 zend_long port = 0; local
402 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
412 if (!(ftp = ftp_open(host, (short)port, timeout_se
[all...]
H A Dftp.c114 /* IP and port conversion box */
124 ftp_open(const char *host, short port, zend_long timeout_sec) argument
138 (unsigned short) (port ? port : 21), SOCK_STREAM,
773 /* parse out the port */
803 /* parse out the IP and port */
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_structs.h416 typedef enum_func_status (*func_mysqlnd_conn_data__connect)(MYSQLND_CONN_DATA * conn, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags);
606 typedef enum_func_status (*func_mysqlnd_data__connect)(MYSQLND * conn, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags);
929 unsigned int port; member in struct:st_mysqlnd_connection_data
H A Dmysqlnd.c857 unsigned int port,
882 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u",
883 host?host:"", user?user:"", db?db:"", port, mysql_flags,
960 if (!port) {
961 port = 3306;
963 transport_len = mnd_sprintf(&transport, 0, "tcp://%s:%u", host, port);
1002 conn->port = port;
1108 unsigned int port,
1121 ret = conn->m->connect(conn, host, user, passwd, passwd_len, db, db_len, port, socket_or_pip
1131 mysqlnd_connect(MYSQLND * conn_handle, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags, unsigned int client_api_flags ) argument
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c204 PHPDBG_API int phpdbg_open_socket(const char *interface, unsigned short port) { argument
206 int fd = phpdbg_create_listenable_socket(interface, port, &res);
223 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *addr_res) { argument
259 snprintf(port_buf, 7, "%u", port);
H A Dphpdbg.c1006 static int phpdbg_remote_init(const char* address, unsigned short port, int server, int *socket, FILE **stream) { argument
1010 phpdbg_rlog(fileno(stderr), "Initializing connection on %s:%u failed", address, port); local
1015 phpdbg_rlog(fileno(stderr), "accepting connections on %s:%u", address, port); local
1335 /* if you pass a listen port, we will read and write on listen port */
/PHP_TRUNK/sapi/litespeed/
H A Dlsapilib.c2296 int port; local
2357 port = atoi( pEnd );
2358 if (( port <= 0 )||( port > 65535 ))
2379 ((struct sockaddr_in *)pAddr)->sin_port = htons( port );
2381 ((struct sockaddr_in6 *)pAddr)->sin6_port = htons( port );
/PHP_TRUNK/main/
H A Dfastcgi.c651 short port = 0; local
664 port = atoi(s+1);
665 if (port != 0 && (s-path) < MAXPATHLEN) {
671 port = atoi(path);
672 if (port != 0) {
682 sa.sa_inet.sin_port = htons(port);
H A Dnetwork.c423 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
454 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
460 ((struct sockaddr_in *)sa)->sin_port = htons(port);
520 short port; local
534 port = atoi(colon + 2);
541 port = atoi(colon + 1);
550 in6->sin6_port = htons(port);
558 in4->sin_port = htons(port);
581 in6->sin6_port = htons(port);
588 in4->sin_port = htons(port);
773 php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code, char *bindto, unsigned short bindport, long sockopts ) argument
952 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
1114 _php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC) argument
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_http.c169 int port; local
179 port = Z_LVAL_P(proxy_port);
183 port = phpurl->port;
229 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, host, port);
247 smart_str_append_unsigned(&soap_headers, phpurl->port);
251 if (phpurl->port != 80) {
253 smart_str_append_unsigned(&soap_headers, phpurl->port);
470 if (phpurl->port == 0) {
471 phpurl->port
[all...]
H A Dphp_sdl.c749 xmlNodePtr trav, port; local
767 if (!node_is_equal(trav,"port")) {
771 port = trav;
776 bindingAttr = get_attribute(port->properties, "binding");
778 soap_error0(E_ERROR, "Parsing WSDL: No binding associated with <port>");
783 trav2 = port->children;
817 soap_error0(E_ERROR, "Parsing WSDL: No address associated with <port>");
824 soap_error0(E_ERROR, "Parsing WSDL: No location associated with <port>");
/PHP_TRUNK/ext/sockets/
H A Dsockets.c110 ZEND_ARG_INFO(0, port)
150 ZEND_ARG_INFO(1, port)
156 ZEND_ARG_INFO(1, port)
168 ZEND_ARG_INFO(0, port)
178 ZEND_ARG_INFO(0, port)
201 ZEND_ARG_INFO(1, port)
210 ZEND_ARG_INFO(0, port)
419 static int php_open_listen_sock(php_socket **php_sock, int port, int backlog) /* {{{ */ argument
438 la.sin_port = htons((unsigned short) port);
912 /* {{{ proto resource socket_create_listen(int port[, in
917 zend_long port, backlog = 128; local
1193 zval *arg1, *addr, *port = NULL; local
1405 zend_long port = 0; local
1511 zend_long port = 0; local
1802 zend_long len, flags, port = 0; local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c186 int port; member in struct:php_cli_server
623 char addr[64], port[8]; local
624 strncpy(port, tmp + 1, 8);
625 port[7] = '\0';
629 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port);
649 spprintf(&tmp, 0, "%i", client->server->port);
1175 static php_socket_t php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, zend_string **errstr) /* {{{ */ argument
1207 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1220 ((struct sockaddr_in *)sa)->sin_port = htons(*port);
1249 if (*port
2172 int port = 3000; local
[all...]
/PHP_TRUNK/ext/ldap/
H A Dldap.c299 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]])
305 zend_long port = LDAP_PORT; local
320 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) {
328 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sl", &host, &hostlen, &port) != SUCCESS) {
349 if (port <= 0 || port > 65535) {
350 php_error_docref(NULL, E_WARNING, "invalid port number: %ld", port);
355 snprintf( url, urllen, "ldap://%s:%ld", host ? host : "", port );
2958 ZEND_ARG_INFO(0, port)
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_nonapi.c67 zend_long port = 0, flags = 0; local
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,
129 if (!port){
130 port = MyG(default_port);
158 port, SAFE_STR(username), SAFE_STR(dbname),
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]]]]]])
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c104 ZEND_ARG_INFO(0, port)
113 ZEND_ARG_INFO(0, port)
1275 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local
1318 port = Z_STRVAL(args[1]);
1354 pgsql = PQsetdb(host, port, options, tty, dbname);
1389 le->ptr = PQsetdb(host,port,options,tty,dbname);
1462 pgsql = PQsetdb(host,port,options,tty,dbname);
1514 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)
1544 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)
1714 Return the port numbe
[all...]

Completed in 94 milliseconds