From lesta@sbs-softwaresysteme.de Tue Aug 21 18:06:26 2001
Received: from antivirus.mts.de (antivirus.mts.de [212.28.97.36])
	by swi.psy.uva.nl (8.11.2/8.11.2) with SMTP id f7LG6Pb05054
	for <prolog@swi.psy.uva.nl>; Tue, 21 Aug 2001 18:06:25 +0200 (MET DST)
Received: from [217.0.202.176] by mail.members.mts.de (NTMail 6.00.0014/NY9411.00.868c0240) with ESMTP id vyrxaaaa for prolog@swi.psy.uva.nl; Tue, 21 Aug 2001 18:04:20 +0200
Received: from 10.10.10.57:1060
	  by KEN! DSL (0.0.0.0:25) with SMTP
	  Tue Aug 21 17:53:11 2001 +0200
Message-Id: <00a201c12a5b$3ac2ccc0$390a0a0a@lesta2>
From: "Lesta" <Lesta@sbs-softwaresysteme.de>
To: "swi prolog mailing list" <prolog@swi.psy.uva.nl>
Date: Tue, 21 Aug 2001 18:06:25 +0200
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Subject: [SWIPL] How connect to a server via socket's on Windows

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



