Overview  Index  Help 
Standard ML Basis Library

INET_SOCK

All Known Implementing Modules:

INetSock


signature INET_SOCK =
sig
  structure UDP :
  sig val socket : unit -> dgram_sock val socket' : int -> dgram_sock end
  structure TCP :
  sig
    val socket : unit -> 'a stream_sock
    val socket' : int -> 'a stream_sock
    val getNODELAY : 'a stream_sock -> bool
    val setNODELAY : 'a stream_sock * bool -> unit
  end
  type inet
  type 'a sock = (inet, 'a) Socket.sock
  type 'a stream_sock = 'a Socket.stream sock
  type dgram_sock = Socket.dgram sock
  type sock_addr = inet Socket.sock_addr
  val inetAF : Socket.AF.addr_family
  val toAddr : NetHostDB.in_addr * int -> sock_addr
  val fromAddr : sock_addr -> NetHostDB.in_addr * int
  val any : int -> sock_addr
end

 
Type detail

inet

type inet


sock

type 'a sock = (inet, 'a) Socket.sock


stream_sock

type 'a stream_sock = 'a Socket.stream sock


dgram_sock

type dgram_sock = Socket.dgram sock


sock_addr

type sock_addr = inet Socket.sock_addr

     
Value detail

inetAF

val inetAF : Socket.AF.addr_family


toAddr

val toAddr : NetHostDB.in_addr * int -> sock_addr


fromAddr

val fromAddr : sock_addr -> NetHostDB.in_addr * int


any

val any : int -> sock_addr

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).