Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Parlab
/
burglar
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ce51d55d
authored
May 05, 2019
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README
parent
addf5f4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
28 deletions
+22
-28
client/README
+22
-28
No files found.
client/README
View file @
ce51d55d
####
Dummy p
alya
ers for labs
Dummy p
lay
ers for labs
####
======================
player.h, player.cpp :
player.h, player.cpp :
* Player's basic class. Implementing the
server communication.
- Player's basic class. Implementing
server communication.
main.cpp :
main.cpp :
*
Implements a simple burglar and cop players.
-
Implements a simple burglar and cop players.
* They are moving randomly and create log messages in
*.log files.
- They are moving randomly and create log messages in \
*.log files.
test.sh :
test.sh :
*
Test script for the simple players version.
-
Test script for the simple players version.
mpimain.cpp :
mpimain.cpp :
* Simple MPI communication example.
- Simple MPI communication example.
* The silly policeman moving randomly and shouting to his radio, if
- The silly policeman is moving randomly and shouting to his radio if he sees the robber.
he sees the robber.
- The others can hear this, but they don't know where the robber is.
* The others can hear this, but they don't know where the robber is.
mptest.sh :
mptest.sh :
* Test script for the MPI version. Starts a burglar, and starts the
- Test script for the MPI version. Starts a burglar, and starts the MPI processes.
MPI processes.
Compile:
Compile:
module load mpi
module load mpi
make
make
Starting the clients:
Starting the clients:
Futtatas:
./test.sh – simple version
Feltetelezzuk, hogy a laborgepen, amin dolgozunk a szervert elinditottuk. (szerver.bat)
./mpitest.sh – mpi version
A szerver fixen a 15623-as porton hallgat. Ide kell tunnelezni a klinenseket.
Hogy ne legyen portutkozes, az a javaslat hogy mindeki egyedi portot (RABLO_PORT) hasznaljon.
Starting the graphical server on the local machine:
RABLO_PORT=15000+UID, ahol UID az adott felhasznalo UID-je (id -u)
1. Creating TCP tunnel between the remote machine (para) and the local host.
let RABLO_PORT=15000+`id -u`
a. The server listens on port number 15623.
export RABLO_PORT
b. The client uses the unique port number UID+17000, where UID is your user id on host para.
A laborgepet es a jatekosokat futtato gepet (pl. ural2) ssh tunnelen keresztuk kapcsoljuk ossze.
Using putty:
(putty:
Session->SSH->Tunnels
Session->SSH->Tunnels
X Local ports accept connection from othrer hosts
X Local ports accept connection from othrer hosts
Source port:
RABLO_PORT_ERTEKE
Source port:
your unique port number (UID+17000). (./test.sh will display the port number)
Destination: localhost:15623
Destination: localhost:15623
X Remote
X Remote
X Ipv4
X Ipv4
Add
Add
)
Ha a javas server fut indithato a test.sh, vagy az mpitest.sh
A *.log-okban lathato a kommunikacio.
Using ssh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment