MCPcopy Create free account
hub / github.com/ceph/ceph / Server

Method Server

src/test/msgr/test_async_networkstack.cc:828–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826
827 public:
828 Server(StressFactory *f, EventCenter *c, ConnectedSocket s):
829 factory(f), center(c), socket(std::move(s)), read_ctxt(this), write_ctxt(this) {
830 center->create_file_event(socket.fd(), EVENT_READABLE, &read_ctxt);
831 center->dispatch_event_external(&read_ctxt);
832 }
833 void close() {
834 ASSERT_FALSE(write_enabled);
835 socket.shutdown();

Callers

nothing calls this directly

Calls 3

create_file_eventMethod · 0.80
fdMethod · 0.45

Tested by

no test coverage detected