home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
lrnbio.zip
/
LRNBIO.TXT
< prev
Wrap
Text File
|
1995-04-29
|
3KB
|
87 lines
Test network usage
Test 00 thru 99
Test 00 not used
Test 01 not used
Test 02 Reset Adapter: resets the lan card for this process only.
Test 03 my name: Assigns my logical name
Test 04 his name: Assigns a name to the other system
Test 05 lancall: run from local side, establishes a point to point
connection; remote side should run lanlisten;
Test 06 lanlisten: run from remote side, establishes a point to point
connection; local side should run lancall.
Test 07 lanhangup: disconnects a previously established connection.
Test 08 lansendbroadcast: sends a broadcast data packet
Test 09 lanrcvbroadcast: rcvs a broadcast data packet
Test 10 remove name: removes my name which was previously assigned.
Test 11 add group name: adds a group name; not very usefull for these
tests.
Test 12 send datagram: sends a datagram
Test 13 rcv datagram: rcvs a datagram
This test program was developed for my own usage, to see how this stuff
works. It's not well documented or easy to use, so it may take a bit of
playing with it to get it to work. Every input is two digits and if
additional input is required (3 character name), you will be prompted
for it.
This program uses IBM NetBIOS and ASCNETB.DLL.
Here's how to use it:
For a Local system:
1. reset the adapter by doing a 02.
2. assign my name 03 (I use "loc").
3. assign the other name 04 (I use "rem").
For a Remote system:
1. reset the adapter by doing a 02.
2. assign my name 03 (I use "rem").
3. assign the other name 04 (I use "loc").
You need to make sure that the names match. IOW, if the local system
is named "loc" and the remote system is named "rem", then the local
system should have "my name" (03) of "loc" and "his name" (04) as
"rem". Conversely, the remote system should have "my name" (03) as
"rem" and "his name" (04) as "loc". You cannot have two systems with
the same name.
Now establish a point to point connection between the two systems by
doing a call on the local and listen on the remote.
Local system
05 lancall
Remote system
06 lanlisten
There is a timeout of about 10 seconds, so make sure you get them
calling and listening at about the same time. CTL-C will break out
of the program if there's a problem.
If you can do a connection, now you can send some packets. Use either
lansendbroadcast with lanrcvbroadcast on the other end or send datagram
with rcv datagram on the other end. The local side can send or rcv and
the remote side can send or rcv. The send does an immediate send while
the rcv waits about 5 seconds before timing out. So make sure the rcv
side is rcving before doing the send.
Control C stops the program in the middle of a test, test 99 exits.
Good luck.
Jeff