12 #ifndef ROC_NETIO_BASIC_PORT_H_
13 #define ROC_NETIO_BASIC_PORT_H_
69 void* handler_arg) = 0;
79 enum { MaxDescriptorLen = address::SocketAddr::MaxStrLen * 2 + 48 };
81 char descriptor_[MaxDescriptorLen];
Base class for List element.
Base class for object with reference counter.
const char * descriptor() const
Get a human-readable port description.
virtual bool open()=0
Open port.
virtual AsyncOperationStatus async_close(ICloseHandler &handler, void *handler_arg)=0
Asynchronous close.
virtual void format_descriptor(core::StringBuilder &b)=0
Implementation of descriptor formatting.
BasicPort(core::IArena &)
Initialize.
void update_descriptor()
Format descriptor and store into internal buffer.
virtual ~BasicPort()
Destroy.
AsyncOperationStatus
Asynchronous operation status.
Asynchronous operation status.
Base class for object with reference counter.