Skip to content
Siddhartha Prasad edited this page Apr 27, 2015 · 1 revision

Usage

The current interpreter binary works best on Unix systems.

Compile and Run

/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	

Compile Client

./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.

Server

./ni_compile -c 

or 

gcc -g iserv.c -o ni_server -lnsl

To run server: 
./server <portnumber>
Clone this wiki locally