Skip to content

Atul-Acharya-17/Distributed-Flight-Information-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running Client

Change to client directory:

cd client

On Mac:

g++ -std=c++17 -o client.o main.cpp constants.hpp marshall/* proxy/* communication/* entities/* client.hpp client.cpp

On Linux/Ubuntu/WSL:

g++ -std=c++17 main.cpp constants.hpp marshall/* proxy/* communication/* entities/* client.hpp client.cpp -o client.o

To run the executable, enter server IP address and client IP address:

./client.o <server_ip> <client_ip>

Running Server

Change to server directory:

cd server/

Compile Java file

javac Main.java

Execute Main class

java Main <server_type>

Options for server type:

  • 0 = At least once server invocation semantics
  • 1 = At most once server invocation semantics

Running Experiments

Run the server as per instructions mentioned above. Remember to reset the flight data after calling QueryFlight to reset the number of available seats before the next iteration.

The client for the experiment can be executed using:

cd client

g++ -std=c++17 exp/*.cpp constants.hpp marshall/* proxy/* communication/* entities/* client.hpp client.cpp -o exp.o

./exp.o <server_ip> <client_ip> <probability>

About

Course Project for CZ4013 Distributed System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •