Lines Matching refs:sin
962 struct sockaddr_in *sin; local
1002 sin = (struct sockaddr_in *) sa;
1003 addr_string = inet_ntop(AF_INET, &sin->sin_addr, addrbuf, sizeof(addrbuf));
1007 ZEND_TRY_ASSIGN_REF_LONG(port, htons(sin->sin_port));
1033 struct sockaddr_in *sin; local
1075 sin = (struct sockaddr_in *) sa;
1076 addr_string = inet_ntop(AF_INET, &sin->sin_addr, addrbuf, sizeof(addrbuf));
1080 ZEND_TRY_ASSIGN_REF_LONG(arg3, htons(sin->sin_port));
1199 struct sockaddr_in sin = {0}; local
1206 sin.sin_family = AF_INET;
1207 sin.sin_port = htons((unsigned short int)port);
1209 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1213 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1433 struct sockaddr_in sin; local
1487 slen = sizeof(sin);
1488 memset(&sin, 0, slen);
1489 sin.sin_family = AF_INET;
1496 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1506 address = inet_ntop(AF_INET, &sin.sin_addr, addrbuf, sizeof(addrbuf));
1510 ZEND_TRY_ASSIGN_REF_LONG(arg6, ntohs(sin.sin_port));
1556 struct sockaddr_in sin; local
1599 memset(&sin, 0, sizeof(sin));
1600 sin.sin_family = AF_INET;
1601 sin.sin_port = htons((unsigned short) port);
1603 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1607 …uf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(sin));