MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / MessageClient

Method MessageClient

LibLemon/src/ipc/interfaceuds.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11namespace Lemon {
12 MessageClient::MessageClient(){
13 int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0);
14 assert(fd > 0);
15
16 sock.fd = fd;
17 sock.events = POLLIN | POLLHUP;
18 }
19
20 MessageClient::~MessageClient(){
21 close(sock.fd);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected