delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/05/19:38:25

From: markiv AT rangenet DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: WinSock in Dos with WIn95
Date: 5 Jan 1997 02:03:30 -0800
Organization: Zip News
Lines: 25
Sender: usenet AT drn DOT zippo DOT com
Message-ID: <5anu9i$qrj@lana.zippo.com>
NNTP-Posting-Host: ppp0.rangenet.com
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