![]() |
DM&P DOS Sockets Library |
DSock Home Page: http://www.dmp.com.tw/tech/dmp-lib/dsock/ | 2007/08/08 |
We use Turbc C 2.0 to compile DSock and we recommend you to use Borland C++/Turbo C++ to build your program. You can download Turbo C++ 1.01 form http://community.borland.com/article/images/21751/tcpp101.zip (2.63 MB)
File Name | Description |
LIB.HTM | DSock library reference. |
LIB\DSOCK.H | DSock library head file for C. |
LIB\DSOCK.LIB | DSock library for DOS, large mode. |
LIB\DSOCK.CFG | Default network configuration file. |
LIB\PKTDRV\NE2000.COM | Packet driver for RTL8019. |
LIB\PKTDRV\PKTDRV.BAT | DOS batch file to load RTL8019 packet driver. |
LIB\PKTDRV\RTSPKT.COM | Packet driver for RTL8139. |
LIB\PKTDRV\PKTDRV2.BAT | DOS batch file to load RTL8139 packet driver. |
LIB\PKTDRV\796PKT.COM | Packet driver for AX88796. |
LIB\PKTDRV\PKTDRV3.BAT | DOS batch file to load AX88796 packet driver. |
Example Name | Description |
DEMO\BOOTP | Use BOOTP/DHCP to get network setting from DHCP server. |
DEMO\DNS | To get IP address from domain name. |
DEMO\FTPD | FTP server example, default user name is "dmp" and default password is "dmp". |
DEMO\HTTPD | Web server example. |
DEMO\SMTP | A simple program to send mail. |
DEMO\SMTPD | SMTP server example. |
DEMO\TELNETD | Simple TELNET server example, default user name is "dmp" and default password is "dmp". |
DEMO\TALK_S | Talk Server example with multiple TCP connections. |
DEMO\TALK_TCP | Talk example with TCP. |
DEMO\talk_tcp_win | Talk (TCP) Windows version written with WinSock. |
DEMO\TALK_UB | Talk example with broadcast. |
DEMO\talk_ub_win | Talk (UDP) Windows version written with WinSock. |
DEMO\TALK_UDP | Talk example with UDP. |
DEMO\talk_udp_win | Talk (UDP) Windows version written with WinSock. |
DEMO\SOCK_AP | A start-up project for programmer that support FTP/HTTP/SMTP/TELNET. |
C:\DSOCK\DEMO\EXE>ne2000 0x62 5 0x320 |
where software interrupt 62H can be any number between 60H and 70H. Just run pktdrv.bat in directory "EXE" to load packet driver:
C:\DSOCK\DEMO\EXE>pktdrv (Load packet driver for RTL 8019) C:\DSOCK\DEMO\EXE>ftpd (Run any DSock example program) |
C:\DSOCK\DEMO\EXE>rtspkt 0x62 |
where software interrupt 62H can be any number between 60H and 70H. Or run pktdrv2.bat in directory "EXE" to load packet driver:
C:\DSOCK\DEMO\EXE>pktdrv2 (Load packet driver for RTL8139) C:\DSOCK\DEMO\EXE>ftpd (Run any DSock example program) |
C:\DSOCK\DEMO\EXE>796pkt 0x62 5 0x320 |
where software interrupt 62H can be any number between 60H and 70H. Or run pktdrv3.bat in directory "EXE" to load packet driver:
C:\DSOCK\DEMO\EXE>pktdrv3 (Load packet driver for AX88796) C:\DSOCK\DEMO\EXE>ftpd (Run any DSock example program) |
C:\DSOCK\DEMO\EXE>r6040pd 0x62 |
where software interrupt 62H can be any number between 60H and 70H. Or run pktdrv4.bat in directory "EXE" to load packet driver:
C:\DSOCK\DEMO\EXE>pktdrv4 (Load packet driver for Vortex86SX) C:\DSOCK\DEMO\EXE>ftpd (Run any DSock example program) |
The default setting of network is on DSOCK.CFG. You should modified the default setup upon your network. After changing the DSOCK.CFG, you can run examples.
Jan Yin Chan Electronics Co., LTD. All rights reserved. | Email us: info@dmp.com.tw |