class CAVERNnet_remoteParallelFileIOServer64_c This class acts as a server for performing remote upload and download of files
| | DEFAULT_PORT Default port number to listen on |
|
| THREADED Create a thread to handle each client request. |
|
| NON_THREADED Do not create a thread to handle each client request. |
|
| init (int incomingPort=CAVERNnet_remoteParallelFileIOServer64_c::DEFAULT_PORT, char* neighborServer = NULL, int neighborPort = CAVERNnet_remoteParallelFileIOServer64_c::DEFAULT_PORT, int storeLocally = 1, int numOfSockets = 5) Initialize server. |
| | process (int threaded = CAVERNnet_remoteParallelFileIOServer64_c::NON_THREADED) Check for incoming requests |
This class acts as a server for performing remote upload and download of files. First call the init() call and then inside a while loop call checkForNewRequests(). Use CAVERNnet_remoteParallelFileIOClient_c to connect to this server and perform the upload and download operations.Note: currently I am finding a strange behavior in threads that causes the network I/O to improperly complete. Hence checkForNewRequests() currently does not create a new thread for each client that makes an IO request. All clients must wait in line.
void process(int threaded = CAVERNnet_remoteParallelFileIOServer64_c::NON_THREADED)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de