Lines Matching refs:sin
1207 struct sockaddr_in *sin; local
1251 sin = (struct sockaddr_in *) sa;
1254 addr_string = inet_ntoa(sin->sin_addr);
1262 ZVAL_LONG(port, htons(sin->sin_port));
1290 struct sockaddr_in *sin; local
1331 sin = (struct sockaddr_in *) sa;
1334 addr_string = inet_ntoa(sin->sin_addr);
1342 ZVAL_LONG(arg3, htons(sin->sin_port));
1450 struct sockaddr_in sin = {0}; local
1457 sin.sin_family = AF_INET;
1458 sin.sin_port = htons((unsigned short int)port);
1460 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1464 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1680 struct sockaddr_in sin; local
1728 slen = sizeof(sin);
1729 memset(&sin, 0, slen);
1730 sin.sin_family = AF_INET;
1737 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1751 address = inet_ntoa(sin.sin_addr);
1755 ZVAL_LONG(arg6, ntohs(sin.sin_port));
1806 struct sockaddr_in sin; local
1838 memset(&sin, 0, sizeof(sin));
1839 sin.sin_family = AF_INET;
1840 sin.sin_port = htons((unsigned short) port);
1842 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1846 …k->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin, sizeof(sin));