CIRCT  19.0.0git
Functions
Server.cpp File Reference
#include "cosim/Server.h"
#include "CosimDpi.capnp.h"
#include <capnp/ez-rpc.h>
#include <thread>
#include <unistd.h>
Include dependency graph for Server.cpp:

Go to the source code of this file.

Functions

static void writePort (uint16_t port)
 Write the port number to a file. More...
 

Function Documentation

◆ writePort()

static void writePort ( uint16_t  port)
static

Write the port number to a file.

Necessary when we allow 'EzRpcServer' to select its own port. We can't use stdout/stderr because the flushing semantics are undefined (as in flush() doesn't work on all simulators).

Definition at line 251 of file Server.cpp.

Referenced by esi::cosim::RpcServer::mainLoop().