From deloor@enib.fr Fri Dec 14 16:47:42 2001
Received: from violon.enib.fr (violon.enib.fr [195.221.233.19])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id fBEFlg523682
	for <prolog@swi.psy.uva.nl>; Fri, 14 Dec 2001 16:47:42 +0100 (MET)
Received: by violon.enib.fr (Postfix, from userid 1001)
	id 98BFA1C108; Fri, 14 Dec 2001 16:53:48 +0100 (CET)
Received: from enib.fr (zelda.enib.fr [195.221.233.57])
	by violon.enib.fr (Postfix) with ESMTP id 34F61A455B
	for <prolog@swi.psy.uva.nl>; Fri, 14 Dec 2001 16:53:47 +0100 (CET)
Sender: deloor@enib.fr
Message-ID: <3C1A1F09.425E968@enib.fr>
Date: Fri, 14 Dec 2001 16:47:21 +0100
From: deloor <deloor@enib.fr>
Organization: ENIB
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdk i686)
X-Accept-Language: en
MIME-Version: 1.0
To: prolog@swi.psy.uva.nl
Content-Type: multipart/alternative;
 boundary="------------6B2988E828487E01716A06CD"
X-Virus-Scanned: by AMaViS perl-11
Subject: [SWIPL] little indian and socket


--------------6B2988E828487E01716A06CD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hy

I use the socket library and i want to send message with this format :

- 32 bits --> size of the message in little indian format
- ASCII characters (prolog atom) --> the heart of the message

I use the write/2 predicat for the ASCII part but i don't know how to
generate the head of my messages.

is there anyone which could help me.

thanks

Pierre



--------------6B2988E828487E01716A06CD
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hy
<p>I use the socket library and i want to send message with this format
:
<p>- 32 bits --> size of the message in little indian format
<br>- ASCII characters (prolog atom) --> the heart of the message
<p>I use the write/2 predicat for the ASCII part but i don't know how to
generate the head of my messages.&nbsp;
<pre>is there anyone which could help me.</pre>

<pre>thanks</pre>

<pre></pre>

<pre>Pierre</pre>

<pre></pre>
&nbsp;</html>

--------------6B2988E828487E01716A06CD--

