Datalight SOCKETS™
Total Page:16
File Type:pdf, Size:1020Kb
Datalight SOCKETS Developer’s Guide Distributed by RTD Embedded Technologies SWM-640070001 rev A Datalight SOCKETS Developer’s Guide Datalight, Inc. assumes no liability for the use or misuse of this software. Liability for any warranties implied or stated is limited to the original purchaser only and to the recording medium (disk) only, not the information encoded on it. THE SOFTWARE DESCRIBED HEREIN, TOGETHER WITH THIS DOCUMENT, ARE FURNISHED UNDER A SEPARATE SOFTWARE OEM LICENSE AGREEMENT AND MAY BE USED OR COPIED ONLY IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF THAT AGREEMENT. Datalight, the Datalight logo, FlashFX and ROM-DOS are trademarks or registered trademarks of Datalight, Inc. Microsoft and MS-DOS are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective holders. Contents Contents .................................................................................................................................... i Chapter 1, Introduction...........................................................................................................1 About SOCKETS................................................................................................................1 Getting Started ....................................................................................................................1 References...........................................................................................................................1 SOCKETS General Characteristics.....................................................................................2 System Requirements...................................................................................................2 Application Program Interface (API)...........................................................................2 About TCP/IP......................................................................................................................3 TCP/IP Layers.....................................................................................................................3 Media Support.....................................................................................................................4 Ethernet and Token Ring .............................................................................................4 Serial Line IP (SLIP) ...................................................................................................4 Compressed Serial Line IP (CSLIP) ............................................................................5 Point to Point Protocol (PPP).......................................................................................5 Routing Support ..................................................................................................................5 Bootstrap Protocol (BOOTP).......................................................................................5 Dynamic Host Configuration Protocol (DHCP) ..........................................................6 Address Resolution Protocol (ARP) ............................................................................6 Routing Information Protocol (RIP) ............................................................................6 Alternate Routes ..........................................................................................................6 Simple Network Management Protocol (SNMP).........................................................6 About the Data Transmission Protocols..............................................................................7 File Transfer Protocol (FTP)........................................................................................7 Telnet ...........................................................................................................................7 Simple Mail Transfer Protocol (SMTP).......................................................................7 Transmission Control Protocol (TCP) .........................................................................7 User Datagram Protocol (UDP) ...................................................................................8 Internet Protocol (IP) ...................................................................................................8 Internet Control Message Protocol (ICMP) .................................................................9 HTTP Protocol.............................................................................................................9 Chapter 2, Startup Guide ......................................................................................................11 SDK Overview..................................................................................................................11 Installation.........................................................................................................................11 Environment Variables .....................................................................................................11 File Selection ....................................................................................................................12 Configuration ....................................................................................................................13 Transfer.............................................................................................................................13 Testing ..............................................................................................................................13 Custom Applications.........................................................................................................14 Chapter 3, Physical & Interface Layers...............................................................................15 Setting up Network Drivers ..............................................................................................15 Overview....................................................................................................................15 ODI Driver Installation..............................................................................................15 ii Contents Packet Driver Installation ..........................................................................................17 Setting up a Modem ..........................................................................................................19 Modem Definition File Syntax ..................................................................................19 Retry Strategy on Time-out .......................................................................................22 Multi Destination Drivers ..........................................................................................22 Chapter 4, TCP/IP Basics (Network Layer) ........................................................................27 Setting up SOCKETS........................................................................................................27 TCP/IP Example ...............................................................................................................27 Client/Server Model..........................................................................................................28 Routing..............................................................................................................................28 Routing Information Protocol (RIP) ..........................................................................28 Address Resolution Protocol (ARP) ..........................................................................29 Simple Network Management Protocol (SNMP).......................................................29 SOCKETS (TCP/IP) Printing ...........................................................................................29 SOCKETS Operation Overview .......................................................................................29 Comment on the Timer Interrupt: ..............................................................................30 Traffic Handling of SOCKETS: ................................................................................30 Chapter 5, SOCKETS Configuration and Use (Network & Transport Layers) ..............31 Configuring SOCKETS ....................................................................................................31 Loading SOCKETS ...................................................................................................31 Unloading SOCKETS................................................................................................31 Kernel Applications ..........................................................................................................32 SOCKETP..................................................................................................................32 SOCKETM ................................................................................................................33 SCONFIG ..................................................................................................................34 Configuration Considerations ...........................................................................................34 MTU (Maximum Transmission Unit)........................................................................34 MSS (Maximum Segment Size) ................................................................................34 Buffers .......................................................................................................................34