no need to write the socket intreface in C++
define the endpoint actions