home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / lrnbio.zip / LRNBIO.TXT < prev   
Text File  |  1995-04-29  |  3KB  |  87 lines

  1. Test network usage
  2.  
  3. Test 00 thru 99
  4.  
  5. Test 00 not used
  6. Test 01 not used
  7.  
  8. Test 02 Reset Adapter: resets the lan card for this process only.
  9.  
  10. Test 03 my name: Assigns my logical name
  11.  
  12. Test 04 his name: Assigns a name to the other system
  13.  
  14. Test 05 lancall: run from local side, establishes a point to point
  15.                  connection; remote side should run lanlisten;
  16.  
  17. Test 06 lanlisten: run from remote side, establishes a point to point
  18.                    connection; local side should run lancall.
  19.                    
  20. Test 07 lanhangup: disconnects a previously established connection.
  21.  
  22. Test 08 lansendbroadcast: sends a broadcast data packet
  23.  
  24. Test 09 lanrcvbroadcast: rcvs a broadcast data packet
  25.  
  26. Test 10 remove name: removes my name which was previously assigned.
  27.  
  28. Test 11 add group name: adds a group name; not very usefull for these
  29.                         tests.
  30.                         
  31. Test 12 send datagram: sends a datagram
  32.  
  33. Test 13 rcv datagram: rcvs a datagram
  34.  
  35. This test program was developed for my own usage, to see how this stuff
  36. works.  It's not well documented or easy to use, so it may take a bit of
  37. playing with it to get it to work.  Every input is two digits and if 
  38. additional input is required (3 character name), you will be prompted
  39. for it.
  40.  
  41. This program uses IBM NetBIOS and ASCNETB.DLL.
  42.  
  43. Here's how to use it:
  44.  
  45. For a Local system:
  46. 1. reset the adapter by doing a 02.
  47. 2. assign my name 03 (I use "loc").
  48. 3. assign the other name 04 (I use "rem").
  49.  
  50. For a Remote system:
  51. 1. reset the adapter by doing a 02.
  52. 2. assign my name 03 (I use "rem").
  53. 3. assign the other name 04 (I use "loc").
  54.  
  55. You need to make sure that the names match.  IOW, if the local system
  56. is named "loc" and the remote system is named "rem", then the local
  57. system should have "my name" (03) of "loc" and "his name" (04) as
  58. "rem".  Conversely, the remote system should have "my name" (03) as
  59. "rem" and "his name" (04) as "loc".  You cannot have two systems with
  60. the same name.
  61.  
  62. Now establish a point to point connection between the two systems by
  63. doing a call on the local and listen on the remote.
  64.  
  65. Local system
  66. 05 lancall
  67.  
  68. Remote system
  69. 06 lanlisten
  70.  
  71. There is a timeout of about 10 seconds, so make sure you get them
  72. calling and listening at about the same time.  CTL-C will break out
  73. of the program if there's a problem.
  74.  
  75. If you can do a connection, now you can send some packets.  Use either
  76. lansendbroadcast with lanrcvbroadcast on the other end or send datagram
  77. with rcv datagram on the other end.  The local side can send or rcv and
  78. the remote side can send or rcv.  The send does an immediate send while
  79. the rcv waits about 5 seconds before timing out.  So make sure the rcv
  80. side is rcving before doing the send.
  81.  
  82. Control C stops the program in the middle of a test, test 99 exits.
  83.  
  84. Good luck.
  85.  
  86. Jeff
  87.