Lines Matching refs:sin
677 static int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock TSRMLS_DC)… argument
683 sin->sin_addr.s_addr = tmp.s_addr;
698 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length);
1368 struct sockaddr_in *sin; local
1406 sin = (struct sockaddr_in *) sa;
1409 addr_string = inet_ntoa(sin->sin_addr);
1417 ZVAL_LONG(port, htons(sin->sin_port));
1445 struct sockaddr_in *sin; local
1484 sin = (struct sockaddr_in *) sa;
1487 addr_string = inet_ntoa(sin->sin_addr);
1495 ZVAL_LONG(arg3, htons(sin->sin_port));
1600 struct sockaddr_in sin = {0}; local
1607 sin.sin_family = AF_INET;
1608 sin.sin_port = htons((unsigned short int)port);
1610 if (! php_set_inet_addr(&sin, addr, php_sock TSRMLS_CC)) {
1614 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1822 struct sockaddr_in sin; local
1866 slen = sizeof(sin);
1867 memset(&sin, 0, slen);
1868 sin.sin_family = AF_INET;
1875 …retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin, (socklen_t …
1887 address = inet_ntoa(sin.sin_addr);
1891 ZVAL_LONG(arg6, ntohs(sin.sin_port));
1940 struct sockaddr_in sin; local
1969 memset(&sin, 0, sizeof(sin));
1970 sin.sin_family = AF_INET;
1971 sin.sin_port = htons((unsigned short) port);
1973 if (! php_set_inet_addr(&sin, addr, php_sock TSRMLS_CC)) {
1977 …k->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin, sizeof(sin));