delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/06/21:19:23

Date: Mon, 6 Jan 1997 18:05:45 -0800 (PST)
From: Samuel Vincent <svincent AT cs DOT sonoma DOT edu>
To: Dan Hedlund <markiv AT rangenet DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: WinSock in Dos with WIn95
In-Reply-To: <32D1995A.9A8@rangenet.com>
Message-ID: <Pine.GSO.3.94.970106180435.1955A-100000@zippy>
MIME-Version: 1.0

On Mon, 6 Jan 1997, Dan Hedlund wrote:

> Alexander V. Lukyanov wrote:
> > 
> > > I don't know, I have to get connect and accept to work first.  Do you
> > > know where I can find any information on wsock.vxd?
> > 
> > I know little about winsock, but I programmed for unix sockets.
> > Can the problem with connect / accept be caused by reversed byte
> > order in port number? It is needed to use htons(port) as
> > the part of sockaddr. For this reason my own program worked
> > on Sparc (most significant byte first) bye did not on ix86.
> 
> I found the problem!!!  I was using a stream socket instead of a
> datagram socket.  It just sucessfully connected to my http server.  
> 
> Thanks for all the help, Dan
> 
> -- 
> 
> *****      ***   **    **       Dan M. Hedlund
>  ** **    *****  ***   **       <markiv AT rangenet DOT com>
>  **  **  **   ** ****  **       http://www.rangenet.com/markiv
>  **   ** **   ** ** ** **
>  **   ** ******* **  ****
>  **  **  **   ** **   ***
>  ** **   **   ** **    **
> *****    **   ** **    **
> 

Wow!  Now we can make a libwsock.a!  Would you like to do the honors, or
could you share your code possibly? ;)

-Sam


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019