![]() |
DM&P DOS Sockets Library |
| Home : Products | Applications | Technical Support | 2003/08/01 |
DSock是一个基于DOS系统实模式下的TCP/IP库,您可以在我们的产品RSIP发现其具体应用。 它提供简单的C语言函数,特别适用于DOS系统下的DM&P产品用户。开发人员可以利用DSock库函数,快速开发基于DOS 系统的Internet程序。 如 BOOTP/DHCP, FTP服务器, SMTP客户端/服务器, HTTP服务器, TELNET服务器, Talk客户端/服务器,等等
DSock提供了很多范例程序的C源码 Programmer can add Internet functions to their project easily and save a lot of time. We also provide a utility "MakeROM" which can make a ROM image for programmer to fit their application, DOS and BIOS into one 512KB flash ROM like Mity-Mite Module Demo Box do.
DSock is free for DM&P products using M6117D/Vortex86 CPU and business version is also available for other x86 CPUs. If you want to use DSock on other x86 CPUs, mail to info@icop.com.cn please.
Just running DSock examples, our single board computers with Ethernet interface can be a Web/FTP server. You can get benefits from DSock:
We use Turbo C 2.0 to compile DSock and we recommend you to use Borland C++/Turbo C++ to build your program. Download Turbo C++ 1.01 form http://community.borland.com/article/images/21751/tcpp101.zip (2.63 MB)
|
Version 0.51 - 2002/07/24
Version 0.50 - 2002/06/11
Version 0.42 - 2002/05/20
|
| Hardware Requirement Packet Driver Requirement |
Operating System Protocols |
| 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. |
For example, user can download RSIP auto-update form our web site to update firmware. RSIP uses a 512KB flash disk contains BIOS, X-DOS and RSIP main program like Mity-Mite Module.
Update Utility Page: http://www.dmp.com.cn/tech/dmp-lib/dsock/update
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) |
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.
| The DSock library download from our web site is test version. It will quit to DOS after 2 hours. Mail us to get normal or business version please. E-mail: info@icop.com.cn. |
| Jan Yin Chan Electronics Co., LTD. All rights reserved. | Email us: info@dmp.com.cn |