-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Siddhartha Prasad edited this page Apr 27, 2015
·
1 revision
The current interpreter binary works best on Unix systems.
/bin/bash ni_compile <args>:
<args>: option 1: -c : just compile
option 2: <hostname> <port> : will run both server and client
option 3: <nil> : just run on localhost
to run file transfer macro test:
/bin/bash file_transfer/ftcompile <args>:
<args>: option 1: <hostname> <port> : runs both server and client, transfers
binary and logfile to client, forks and runs
option 2: <nil> : just run on localhost
./ni_compile -c
or
gcc -g iclient.c -o ni_client -lnsl -pthread
To run client:
./ni_client <hostname> <portnumber>
The command (exit)
can be used to transfer from a network to local interpreter.
./ni_compile -c
or
gcc -g iserv.c -o ni_server -lnsl
To run server:
./server <portnumber>