#include <server.h>
|
| | Server (mesh::NodeIdent, int group_sz) |
| |
| int | start () |
| | Start server on well know port. Accepts connection from all the clients. Store socket ids in recv_socks_ map.
|
| |
| int | recv_buf (const std::string &src, void *buf, size_t len) |
| | Receives data from the source.
|
| |
| int | shutdown () |
| | close each connection connected to client on all the workers.
|
| |
◆ Server()
◆ recv_buf()
| int mesh::Server::recv_buf |
( |
const std::string & |
src, |
|
|
void * |
buf, |
|
|
size_t |
len |
|
) |
| |
Receives data from the source.
- Parameters
-
| src | Source worker to receive data from. |
| buf | Pointer to buffer to receive at. |
| len | Size of the buffer. |
- Returns
- Return 0 if success, -1 if fails.
◆ shutdown()
| int mesh::Server::shutdown |
( |
| ) |
|
close each connection connected to client on all the workers.
- Returns
- Return 0 on success, -1 otherwise
◆ start()
| int mesh::Server::start |
( |
| ) |
|
Start server on well know port. Accepts connection from all the clients. Store socket ids in recv_socks_ map.
- Returns
- Return 0 on success, -1 otherwise.
The documentation for this class was generated from the following file:
- /home/runner/work/realm/realm/realm-src/src/realm/ucx/bootstrap/server.h