Lines Matching refs:sock
54 static int _php_mcast_join_leave(php_socket *sock, int level, struct sockaddr *group, socklen_t gro…
56 static int _php_mcast_source_op(php_socket *sock, int level, struct sockaddr *group, socklen_t grou…
117 php_socket *sock, unsigned int *if_index) in php_get_if_index_from_array() argument
130 php_socket *sock, php_sockaddr_storage *ss, socklen_t *ss_len) in php_get_address_from_array() argument
142 if (!php_set_inet46_addr(ss, ss_len, Z_STRVAL_P(val), sock)) { in php_get_address_from_array()
382 php_socket *sock, in php_mcast_join() argument
388 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1); in php_mcast_join()
392 php_socket *sock, in php_mcast_leave() argument
398 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0); in php_mcast_leave()
403 php_socket *sock, in php_mcast_join_source() argument
411 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
415 php_socket *sock, in php_mcast_leave_source() argument
423 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
427 php_socket *sock, in php_mcast_block_source() argument
435 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
439 php_socket *sock, in php_mcast_unblock_source() argument
447 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
453 php_socket *sock, in _php_mcast_join_leave() argument
467 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
471 if (sock->type == AF_INET) { in _php_mcast_join_leave()
478 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_join_leave()
486 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
491 else if (sock->type == AF_INET6) { in _php_mcast_join_leave()
499 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
515 php_socket *sock, in _php_mcast_source_op() argument
533 return setsockopt(sock->bsd_socket, level, in _php_mcast_source_op()
536 if (sock->type == AF_INET) { in _php_mcast_source_op()
547 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_source_op()
555 return setsockopt(sock->bsd_socket, level, in _php_mcast_source_op()
559 else if (sock->type == AF_INET6) { in _php_mcast_source_op()