Lines Matching refs:sin
1086 struct sockaddr_in *sin; local
1123 sin = (struct sockaddr_in *) sa;
1126 addr_string = inet_ntoa(sin->sin_addr);
1132 ZEND_TRY_ASSIGN_REF_LONG(port, htons(sin->sin_port));
1158 struct sockaddr_in *sin; local
1197 sin = (struct sockaddr_in *) sa;
1200 addr_string = inet_ntoa(sin->sin_addr);
1206 ZEND_TRY_ASSIGN_REF_LONG(arg3, htons(sin->sin_port));
1311 struct sockaddr_in sin = {0}; local
1318 sin.sin_family = AF_INET;
1319 sin.sin_port = htons((unsigned short int)port);
1321 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1325 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1531 struct sockaddr_in sin; local
1578 slen = sizeof(sin);
1579 memset(&sin, 0, slen);
1580 sin.sin_family = AF_INET;
1587 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1597 address = inet_ntoa(sin.sin_addr);
1601 ZEND_TRY_ASSIGN_REF_LONG(arg6, ntohs(sin.sin_port));
1647 struct sockaddr_in sin; local
1684 memset(&sin, 0, sizeof(sin));
1685 sin.sin_family = AF_INET;
1686 sin.sin_port = htons((unsigned short) port);
1688 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1692 …uf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(sin));