module Cf_ip4_proto:Thesig
..end
AF_INET
address family (for use with TCP and UDP over IPv4).module AF:Cf_socket.AF
with type tag = [ `AF_INET ] and type address = Cf_ip4_addr.opaque Cf_ip4_addr.t * int
module TCP:Cf_socket.P
with module AF = AF and module ST = Cf_socket.SOCK_STREAM
module UDP:Cf_socket.P
with module AF = AF and module ST = Cf_socket.SOCK_DGRAM
type
mreq = {
|
imr_multiaddr : |
|
imr_interface : |
The following socket options are available on sockets of AF_INET family.
val ip_ttl : (int, [ `AF_INET ], 'a) Cf_socket.sockopt
val ip_add_membership : (mreq, [ `AF_INET ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
val ip_drop_membership : (mreq, [ `AF_INET ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
val ip_multicast_if : (Cf_ip4_addr.unicast Cf_ip4_addr.t, [ `AF_INET ], [ `SOCK_DGRAM ])
Cf_socket.sockopt
val ip_multicast_ttl : (int, [ `AF_INET ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
val ip_multicast_loop : (bool, [ `AF_INET ], [ `SOCK_DGRAM ]) Cf_socket.sockopt
The following socket options are available on sockets of AF_INET and
AF_INET6 address/protocol families.
val siocgifaddr : ([ `AF_INET ], 'a) Cf_socket.t ->
string -> [> Cf_ip4_addr.unicast ] Cf_ip4_addr.t
siocgifaddr sock name
with any `AF_INET
address family socket
sock
to get the primary IP address for the name
interface.