Server is a basic control server.
| 39 | |
| 40 | // Server is a basic control server. |
| 41 | type Server struct { |
| 42 | // socket is our bound socket. |
| 43 | socket *unet.ServerSocket |
| 44 | |
| 45 | // server is our rpc server. |
| 46 | server atomic.Pointer[urpc.Server] |
| 47 | |
| 48 | // wg waits for the accept loop to terminate. |
| 49 | wg sync.WaitGroup |
| 50 | } |
| 51 | |
| 52 | // New returns a new bound control server. |
| 53 | func New(socket *unet.ServerSocket) *Server { |
nothing calls this directly
no outgoing calls
no test coverage detected