Mail Archives: djgpp/2000/07/16/17:37:54
Hello.
Sparrow wrote:
> After I finally managed to successfully compile the WSock chat demo, I
> run them and get strange errors. For example, when running CHAT1.EXE, I
> get the following error messages:
>
> Wsock: Function SOCKET(110) returned WSAEAFNOSUPPORT - Address family
> not supported by this protocol(273f)
> Wsock: Function CONNECT(103) returned WSAEINVAL - Invalid argument(2726)
>
> CHAT2.EXE gives the following error in an endless loop:
>
> Wsock: Function ACCEPT(100) returned WSAEINVAL - Invalid argument(2726)
From "Wsock chat demo", it sounds like you are using Dan Hedlund's WSOCK
library. From the error messages it looks like your Windows networking is
provided by Winsock 2. Unfortunately, WSOCK only works with Winsock 1.x.
To confirm you have Winsock 2, look in your Windows system directory for a
file call WSOCK2.VXD, e.g.:
dir c:\windows\system\wsock2.vxd
If this file is present, you are probably using Winsock 2. Which version
of Windows '95/'98 are you using?
libsocket works with Winsock 2:
http://libsocket.tsx.org/
There are a few limitations when working with Winsock 2, unfortunately.
See the list of bugs on the above page.
Hope this helps, bye,
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -