English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-05-18 (15:50)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] RAW-sockets
On Thu, May 18, 2006 at 05:27:45PM +0200, Oliver Bandel wrote:
> Hello,
> how to use Eaw sockets from OCaml?
> As in raw sockets I have to create the IP-header by myself
> I'm wondering how.
> IP normally uses 32Bit words, and the parts of it are not
> necessarily byte or nibble oriented.
> So I have to be able to set some bits directly.
> But the OCaml int's is not complete 32 Bits.

I have not found in the Unix-module an option for the sockets,
that is eaquivalent to the IP_HDRINCL option, as described
by Stevens in the Networking Programming Vol. I.

Isn't it possible in OCaml to create own IP-headers?
So, do I have to go back to C to e.g. write ICMP packets?