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: Oliver Bandel <oliver@f...>
Subject: RAW-sockets
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.

How to use the raw sockets then?

Do I have to make a string (for highlevel socket functions)
or int's (read/write) and write that string or int-buffer
into the socket?
So that I write all bytes of the header as if it would be
normal data that I would write to a tcp-socket otherwise?

TIA,
  Oliver