DM&P DOS Sockets Library |
|
Home : Products | Technical Support | 2007/08/08 |
DSock is a TCP/IP library for DOS real mode, which is used by RSIP. It provides simple C functions for programmer to write Internet applications. We also provide Internet examples using DSock: BOOTP/DHCP, FTP server, SMTP client/server, HTTP server, TELNET server, Talk client/server, etc.
DSock provides a lot of example source code. 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/Vortex86SX CPU and business version is also available for other x86 CPUs. If you want to use DSock on other x86 CPUs, mail to soc@dmp.com.tw 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.61 - 2007/08/08
Version 0.60 - 2004/12/09
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.tw/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) |
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.
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.tw. |
DMP Electronics Inc. All rights reserved. | Email us: info@dmp.com.tw |