Version française
Home     About     Download     Resources     Contact us    
Browse thread
Raw Sockets
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Bryant <jtbryant@v...>
Subject: Re: [Caml-list] Raw Sockets

> I was astouned that OCaml now has a type for Raw-sockets.

Yes, I saw.  That's why I asked  :)

> So I think it is possible to use raw sockets with OCaml now.
> (I have 3.08.0 here, but didn't rried Raw Sockets.)

Has anybody?  I have used SOCK_RAW in C before and, with the aid of a
tutorial (it's been a while), I could do the same in OCaml if there
weren't some functions missing.  I don't see anything in the Unix
library like hton(),  structures for IP headers, etc., like there are in
the C standard library.  Is this just a shortcoming in the Unix module,
or is this intentional (i.e., Unix.SOCK_RAW is just really a
placeholder)?


> 
> Ciao,
>   Oliver
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs