TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: joaquim homrighausen
from: Mike Bilow
date: 1997-02-06 02:39:22
subject: Accessing TCP/IP in a VDM under Warp 3/4

joaquim homrighausen wrote in a message to All:

 jh>   Sorry if this has been mentioned before, but I've been
 jh> disconnected from this conference for a while. Does anyone
 jh> know how (or where there may be specifications available) to
 jh> access OS/2's TCP/IP from a VDM ("dos box")? I suspect an
 jh> INT 2F/21 interface is somehow available, but I haven't
 jh> found any references to it..

IBM does not want you to access TCP/IP at that low a level.  Instead, IBM
expects you to make calls into the Socket API through their libraries
provided as part of the Programmer's Toolkit for TCP/IP for DOS.

     The following list shows the TCP/IP Version 2.1 for DOS
     application programming interfaces that are supported by the
     DOS/Windows Access Kit.  Any application written to these
     libraries will run in an OS/2 V2.1 VDM.

     Library               Description
     -------               -----------
     SOCKETS.LIB           Real mode small model sockets library
     SOCKETL.LIB           Real mode large model sockets library
     RPCS.LIB              SUN RPC small model library
     RPCL.LIB              SUN RPC large model library
     FTPAPI.LIB            FTP Application Programming Interface
                           library
     WINSOCK.LIB           Windows Sockets API V1.1 library
     WFTPAPI.LIB           Windows FTP Application Programming
                           Interface library
     BIOS int14h           BIOS Interrupt 14 Telnet
                           Redirector (see COMTCP below).

     NOTE:  For more information on TCP/IP Version 2.1 for DOS
     application programming interfaces, see "TCP/IP Version 2.1
     for DOS:  Programmer's Reference," SC31-7046.

From inside a DOS box, you see a number of "drivers" hooked into
the DOS chain which are involved in handling TCP/IP access, contained in
VDOSTCP.SYS:

  000700      BIO          0016D0     System Data
                  SOCKET$               System Device Driver
                  DOSTCP$               System Device Driver

In effect, IBM provides most of the same API which you would have if you
were writing to TCP/IP 2.1 for DOS on real DOS, and you use the same tools.
 
-- Mike


--- 
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 323/107 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.