| 687 | |
| 688 | public: |
| 689 | Client(StressFactory *f, EventCenter *cen, ConnectedSocket s, size_t c) |
| 690 | : factory(f), center(cen), socket(std::move(s)), left(c), homeless_message(factory->rs, -1, 1024), |
| 691 | read_ctxt(this), write_ctxt(this) { |
| 692 | center->create_file_event( |
| 693 | socket.fd(), EVENT_READABLE, &read_ctxt); |
| 694 | center->dispatch_event_external(&read_ctxt); |
| 695 | } |
| 696 | void close() { |
| 697 | ASSERT_FALSE(write_enabled); |
| 698 | dead = true; |
nothing calls this directly
no test coverage detected