You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project consolidates basic knowledge about interprocess communication and remote invocation through constructing client and server programs that use UDP as the transport protocol. The client and server programs are designed to simulate a distributed banking system.
Options:
-al,--atleast Enable at least once invocation semantic
-am,--atmost Enable at most once invocation semantic
-fr,--failurerate <arg> Set failure rate (float)
-h,--host <arg> Server host
-mt,--maxtimeout <arg> Set timeout max count
-p,--port <arg> Server port
-to,--timeout <arg> Set timeout in millisecond
-v,--verbose Enable verbose print for debugging
Server (C++)
cd server
g++ -o server -std=c++11 main.cpp udp_server.cpp utils.cpp Handler.cpp AccountManager.cpp Account.cpp Admin.cpp
./server <PORT> <MODE> <FAULT> <LIMIT>
Note:
<MODE> is the invocation semantic. Possible values:
0: no ack
1: at-least-once
2: at-most-once
<FAULT> is the probability that server fails to reply