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 /cml/trunk/cml-lib/SMLNJ-INet/unix-sock-util.sml
ViewVC logotype

View of /cml/trunk/cml-lib/SMLNJ-INet/unix-sock-util.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2102 - (download) (annotate)
Thu Nov 2 15:55:53 2006 UTC (12 years, 9 months ago) by blume
File size: 633 byte(s)
moved CML to toplevel
(* unix-sock-util.sml
 *
 * COPYRIGHT (c) 1999 Bell Labs, Lucent Technologies.
 * 
 * Bind SockUtil structure on Unix systems
 *)

signature UNIX_SOCK_UTIL =
  sig
  
    include SOCK_UTIL

    val connectUnixStrm : string -> UnixSock.unix stream_sock
	(* establish a client-side connection to a Unix-domain stream socket *)

  end


structure UnixSockUtil : UNIX_SOCK_UTIL =
  struct

    open SockUtil

  (* establish a client-side connection to a Unix-domain stream socket *)
    fun connectUnixStrm path = let
	  val sock = UnixSock.Strm.socket ()
	  in
	    Socket.connect (sock, UnixSock.toAddr path);
	    sock
	  end

  end


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0