Under the source directory, type make to compile the library, type make test to compile the test program.
To use the functions provided by libnjaim, place #include "njcore.h" in your source file, link your program with an -lnjaim option.
The test program can be used to transfer files between two clients. with or without public IP, which should be run on two machines in this way: test logname serverip serverport
Logname is the name used to login on udpserver, which can be any string without space and '='; serverip is the IP address of the udpserver, 210.51.4.11 and 162.105.81.245 are two of the test servers currently; serverport should be the port number of the udpserver, default is 9000.
If you see "Login succeeded", that means you are successfully logged in, continue with connecting peer and copying files . Otherwise try another logname. If you always fail, there maybe some problems with your Internet connection, ask your administrator for help.