Lines Matching refs:sock
50 static int _php_mcast_join_leave(php_socket *sock, int level, struct sockaddr *group, socklen_t gro…
52 static int _php_mcast_source_op(php_socket *sock, int level, struct sockaddr *group, socklen_t grou…
108 php_socket *sock, unsigned int *if_index) in php_get_if_index_from_array() argument
121 php_socket *sock, php_sockaddr_storage *ss, socklen_t *ss_len) in php_get_address_from_array() argument
131 if (!php_set_inet46_addr(ss, ss_len, ZSTR_VAL(str), sock)) { in php_get_address_from_array()
369 php_socket *sock, in php_mcast_join() argument
375 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1); in php_mcast_join()
379 php_socket *sock, in php_mcast_leave() argument
385 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0); in php_mcast_leave()
390 php_socket *sock, in php_mcast_join_source() argument
398 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
402 php_socket *sock, in php_mcast_leave_source() argument
410 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
414 php_socket *sock, in php_mcast_block_source() argument
422 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
426 php_socket *sock, in php_mcast_unblock_source() argument
434 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
440 php_socket *sock, in _php_mcast_join_leave() argument
454 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
458 if (sock->type == AF_INET) { in _php_mcast_join_leave()
466 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_join_leave()
474 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
479 else if (sock->type == AF_INET6) { in _php_mcast_join_leave()
488 return setsockopt(sock->bsd_socket, level, in _php_mcast_join_leave()
503 php_socket *sock, in _php_mcast_source_op() argument
521 return setsockopt(sock->bsd_socket, level, in _php_mcast_source_op()
524 if (sock->type == AF_INET) { in _php_mcast_source_op()
535 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_source_op()
543 return setsockopt(sock->bsd_socket, level, in _php_mcast_source_op()
547 else if (sock->type == AF_INET6) { in _php_mcast_source_op()