Specifications

428
Chapter 18
TCP/IP
(BHTs with spread spectrum communications device or
BHTs designed for LAN-support software)
CONTENTS
18.1 Two Sides.................................................................................................... 430
18.1.1 BHT .................................................................................................. 430
18.1.2 Hosts ................................................................................................ 430
18.2 TCP/IP over Spread Spectrum System ....................................................... 431
18.2.1 General Procedure........................................................................... 431
[ 1 ] Configure Spread Spectrum Communications Device............ 431
[ 2 ] Configure TCP/IP System ....................................................... 432
[ 3 ] Declare TCP/IP Communications Pathway............................. 433
[ 4 ] Open Spread Spectrum Communications Device................... 433
[ 5 ] Check Spread Spectrum Communications Device
Synchronization with Master ................................................... 434
[ 6 ] Connect to TCP/IP Communications Pathway........................ 435
[ 7 ] Transfer Data or File via Socket Interface............................... 435
[ 8 ] Disconnect TCP/IP Communications Pathway ....................... 436
[ 9 ] Close Spread Spectrum Communications Device .................. 436
18.2.2 Programming Notes for Socket API According to UDP.................... 437
18.2.3 Programming Notes for TCP/IP Communication.............................. 439
18.2.4 Sample Program .............................................................................. 441
18.3 TCP/IP over IrDA Communication System.................................................. 442
18.3.1 General Procedure........................................................................... 442
[ 1 ] Configure IrDA Communications Device for LAN-Support
System .................................................................................... 442
[ 2 ] Configure TCP/IP System ....................................................... 443
[ 3 ] Declare TCP/IP Communications Pathway............................. 444
[ 4 ] Open IrDA Communications Device........................................ 444
[ 5 ] Connect to TCP/IP Communications Pathway........................ 445
[ 6 ] Transfer Data or File via Socket Interface............................... 445
[ 7 ] Disconnect TCP/IP Communications Pathway ....................... 446
[ 8 ] Close IrDA Communications Device ....................................... 446
18.3.2 Programming Notes for Socket API According to UDP.................... 447
18.3.3 Programming Notes for TCP/IP Communication.............................. 447
18.3.4 Sample Program .............................................................................. 448
18.4 Socket API................................................................................................... 451
18.4.1 Overview .......................................................................................... 451
18.4.2 Client Program Samples for Socket API According to TCP and
UDP.................................................................................................. 453
18.4.3 Programming Notes for Socket API ................................................. 457