Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/cml/src/Sockets/cml-generic-sock.sml
ViewVC logotype

View of /sml/trunk/src/cml/src/Sockets/cml-generic-sock.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 651 - (download) (annotate)
Thu Jun 1 18:34:03 2000 UTC (19 years, 3 months ago) by monnier
File size: 964 byte(s)
bring revisions from the vendor branch to the trunk
(* cml-generic-sock.sml
 * COPYRIGHT (c) 1996 AT&T Research.

structure CML_GenericSock : GENERIC_SOCK =

  (* returns a list of the supported address families; this should include
   * at least:  Socket.AF.inet.
    val addressFamilies = GenericSock.addressFamilies

  (* returns a list of the supported socket types; this should include at
   * least:  Socket.SOCK.stream and Socket.SOCK.dgram.
    val socketTypes = GenericSock.socketTypes

  (* create sockets using default protocol *)
    fun socket arg = PreSock.mkSock(GenericSock.socket arg)
    fun socketPair arg = let
	  val (s1, s2) = GenericSock.socketPair arg
	    (PreSock.mkSock s1, PreSock.mkSock s2)

  (* create sockets using the specified protocol *)
    fun socket' arg = PreSock.mkSock(GenericSock.socket' arg)
    fun socketPair' arg = let
	  val (s1, s2) = GenericSock.socketPair' arg
	    (PreSock.mkSock s1, PreSock.mkSock s2)


ViewVC Help
Powered by ViewVC 1.0.0