Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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

> Ciao,
>   Oliver
> _______________________________________________
> Caml-list mailing list. Subscription management:
> Archives:
> Beginner's list:
> Bug reports: