Module Cf_ip6_proto


module Cf_ip6_proto: sig .. end
The AF_INET6 address family (for use with TCP and UDP over IPv6).


Modules and Types

module AF: Cf_socket.AF  with
    type tag_t = [ `AF_INET6 ] and
    type address_t = Cf_ip6_addr.opaque Cf_ip6_addr.t * int
The address family module for IPv6 transports.

type mreq_t = {
   ipv6mr_multiaddr : Cf_ip4_addr.multicast Cf_ip4_addr.t;
   ipv6mr_interface : int;
}
The multicast request type

Socket Options

The following socket options are available on sockets of AF_INET6 family.

val ipv6_unicast_hops : (int, [ `AF_INET6 ], 'a) Cf_socket.sockopt_t
Set the unicast hop count for the socket.
val ipv6_v6only : (bool, [ `AF_INET6 ], 'a) Cf_socket.sockopt_t
Set the unicast hop count for the socket.
val ipv6_join_group : (mreq_t, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt_t
Add the socket to the membership of a multicast group.
val ipv6_leave_group : (mreq_t, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt_t
Drop the socket from the membership of a multicast group.
val ipv6_multicast_if : (int, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt_t
The primary network interface address for sending to multicast destinations.
val ipv6_multicast_hops : (int, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt_t
The multicast hop count for the socket.
val ipv6_multicast_loop : (bool, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt_t
Enable multicast loopback on the socket.