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 = [ `AF_INET6 ] and
    type address = Cf_ip6_addr.opaque Cf_ip6_addr.t * int * int32
The address family module for IPv6 transports.
module TCP: Cf_socket.P  with
    module AF = AF and
    module ST = Cf_socket.SOCK_STREAM
The TCP (IPv6) socket protocol.
module UDP: Cf_socket.P  with
    module AF = AF and
    module ST = Cf_socket.SOCK_DGRAM
The UDP (IPv6) socket protocol.

type mreq = {
   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
Set the unicast hop count for the socket.
val ipv6_v6only : (bool, [ `AF_INET6 ], 'a) Cf_socket.sockopt
Set the unicast hop count for the socket.
val ipv6_join_group : (mreq, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
Add the socket to the membership of a multicast group.
val ipv6_leave_group : (mreq, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
Drop the socket from the membership of a multicast group.
val ipv6_multicast_if : (int, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
The primary network interface address for sending to multicast destinations.
val ipv6_multicast_hops : (int, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
The multicast hop count for the socket.
val ipv6_multicast_loop : (bool, [ `AF_INET6 ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
Enable multicast loopback on the socket.