MCPcopy Create free account
hub / github.com/NetSys/bess / DeInit

Method DeInit

core/drivers/unix_socket.cc:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void UnixSocketPort::DeInit() {
165 // End thread and wait for it (no-op if never started).
166 accept_thread_.Terminate();
167
168 if (listen_fd_ != kNotConnectedFd) {
169 close(listen_fd_);
170 }
171 if (client_fd_ != kNotConnectedFd) {
172 close(client_fd_);
173 }
174}
175
176int UnixSocketPort::RecvPackets(queue_t qid, bess::Packet **pkts, int cnt) {
177 int client_fd = client_fd_;

Callers

nothing calls this directly

Calls 1

TerminateMethod · 0.80

Tested by

no test coverage detected