Lines Matching refs:sin
1088 struct sockaddr_in *sin; local
1127 sin = (struct sockaddr_in *) sa;
1129 addr_string = inet_ntop(AF_INET, &sin->sin_addr, addrbuf, sizeof(addrbuf));
1133 addr_string = inet_ntoa(sin->sin_addr);
1139 ZEND_TRY_ASSIGN_REF_LONG(port, htons(sin->sin_port));
1165 struct sockaddr_in *sin; local
1206 sin = (struct sockaddr_in *) sa;
1208 addr_string = inet_ntop(AF_INET, &sin->sin_addr, addrbuf, sizeof(addrbuf));
1212 addr_string = inet_ntoa(sin->sin_addr);
1218 ZEND_TRY_ASSIGN_REF_LONG(arg3, htons(sin->sin_port));
1323 struct sockaddr_in sin = {0}; local
1330 sin.sin_family = AF_INET;
1331 sin.sin_port = htons((unsigned short int)port);
1333 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1337 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1543 struct sockaddr_in sin; local
1592 slen = sizeof(sin);
1593 memset(&sin, 0, slen);
1594 sin.sin_family = AF_INET;
1601 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1612 address = inet_ntop(AF_INET, &sin.sin_addr, addrbuf, sizeof(addrbuf));
1614 address = inet_ntoa(sin.sin_addr);
1619 ZEND_TRY_ASSIGN_REF_LONG(arg6, ntohs(sin.sin_port));
1665 struct sockaddr_in sin; local
1702 memset(&sin, 0, sizeof(sin));
1703 sin.sin_family = AF_INET;
1704 sin.sin_port = htons((unsigned short) port);
1706 if (! php_set_inet_addr(&sin, addr, php_sock)) {
1710 …uf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(sin));