issues
search
BasicAlgorithm
/
Protocol-HSM
0
stars
2
forks
source link
Implement threads for client.cpp and server.cpp
#24
Closed
BasicAlgorithm
closed
3 years ago
BasicAlgorithm
commented
3 years ago
Two threads. (1st) for CreateRequest and (2nd) for ProcessResponse(int connectionFD)
mgonnav
commented
3 years ago
On the server:
Listens on a port waiting for connections. When a connection arrives, launch a thread for that connection that waits for requests and processes them.
On the client:
Once the connection goes through, creates a thread that waits for responses from the server.