delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/05/05:47:52

From: Dan Hedlund <markiv AT rangenet DOT com>
Newsgroups: comp.os.ms-windows.programmer.vxd,comp.os.msdos.djgpp
Subject: WinSock in Dos with WIn95
Date: Sun, 05 Jan 1997 03:45:42 -0600
Organization: Range Net
Lines: 27
Message-ID: <32CF7846.7B53@rangenet.com>
Reply-To: markiv AT rangenet DOT com
NNTP-Posting-Host: ppp3.rangenet.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi.

I'm trying to get TCP/IP in dos with Win95.  I'm accessing WSOCK.VXD
(through int 2f) using djgpp.  I've got several functions to work :
Bind, CloseSocket, GetSockName, Listen, and Socket.  But when I call
Connect or Accept, it just returns with an error (ax = 0xffff) and the
lights on my modem light up for a few seconds.  I know it's trying to
connect, but for some reason it fails.

I've also had problems accessing the VxD directly from protected mode. 
It works just fine in real mode (calling real mode from protected mode
with DPMI functions, just to go right back into protected mode), but in
protected mode, int 2f returns a pointer to the vxd call, but it just
causes a GPF.  I've tried calling it with 16 and 32 bit return address,
but neither seem to work.


Thanks,

*****      ***   **    **       Dan M. Hedlund
 ** **    *****  ***   **       <markiv AT rangenet DOT com>
 **  **  **   ** ****  **       http://www.rangenet.com/markiv
 **   ** **   ** ** ** **
 **   ** ******* **  ****
 **  **  **   ** **   ***
 ** **   **   ** **    **
*****    **   ** **    **

- Raw text -


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