marionnet-dev team mailing list archive
-
marionnet-dev team
-
Mailing list archive
-
Message #00421
[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 293: Added functions to build dual stack inet4/inet6 servers in the module Network. Also added the sub...
------------------------------------------------------------
revno: 293
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Mon 2012-01-09 00:34:55 +0100
message:
Added functions to build dual stack inet4/inet6 servers in the module Network. Also added the sub-module Socat containing functions with the same purpose of the great unix tool "socat". Example:
# Sys.command "xterm" ;;
: int = 0
# Sys.command "DISPLAY=127.0.0.1:42 xterm" ;;
xterm Xt error: Can't open display: 127.0.0.1:42
: int = 1
# Network.Socat.inet4_of_unix_stream_server ~port:6042 ~socketfile:"/tmp/.X11-unix/X0" () ;;
: Thread.t * string * int = (<abstr>, "0.0.0.0", 6042)
# Sys.command "DISPLAY=127.0.0.1:42 xterm" ;;
: int = 0
modified:
STRUCTURES/network.ml
STRUCTURES/network.mli
--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk
Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription