From starred@tiscalinet.it Tue Aug 21 19:19:27 2001
Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.53])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f7LHJRb07211
	for <prolog@swi.psy.uva.nl>; Tue, 21 Aug 2001 19:19:27 +0200 (MET DST)
Received: from tiscalinet.it (151.21.11.150) by smtp3.libero.it (5.5.025)
        id 3AE98228017EBD4F; Tue, 21 Aug 2001 19:12:22 +0200
Message-ID: <3B8296A0.8BA517AA@tiscalinet.it>
Date: Tue, 21 Aug 2001 19:13:04 +0200
From: Armando Stellato <starred@tiscalinet.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Lesta <Lesta@sbs-softwaresysteme.de>
CC: swi prolog mailing list <prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] How connect to a server via socket's on Windows
References: <00a201c12a5b$3ac2ccc0$390a0a0a@lesta2>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is probably the error it gives you every second time that you start the
program,
infact you are creating a socket listener bound to port 5665 and if you don't
close the socket at the end of the program, you will find the port occupied when
you'll restart it.
Bye
Armando

Lesta wrote:

> Hello to all of you,
>
> I like to build a cliet on a windows2000 machine
> comunicate via sockets using pl-4.0.9.
>
> test:-
>     tcp_socket(S),
>     tcp_bind(S,5665),
>     tcp_open_socket(S, IN, OUT),
>     ...
>
> results in the error msg :
> ERROR: Unknown error term: socket_error('No such file or directory')
>    Exception: (8) socket:tcp_bind('$socket'(396), 5665) ?
> in tcp_bind.
>
> Can someone help me, perhaps with a small example ?
>
> Thanks in advance
>
> --
>
> Kind regards
>
> Uwe
> Lesta@t-online.de
>
> ----------------
> * To UNSUBSCRIBE, please use the HTML form at
>
>     http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist
>
> or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe"
> (without the quotes) and *no* message body.
>
> ** An ARCHIVE of this list is maintained at
>
>     http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/

