how many bytes have been received on the connection in total
how many bytes have been received on the connection in total
how many bytes have been sent on the connection in total
how many bytes have been sent on the connection in total
Terminate the connection
The id of the underlying connection.
The id of the underlying connection. This is different from a WorkerItem's id.
Returns a timestamp, in milliseconds of when the last time data was read on the connection
Returns a timestamp, in milliseconds of when the last time data was read on the connection
Returns a timestamp, in milliseconds of when the last time data was written on the connection
Returns a timestamp, in milliseconds of when the last time data was written on the connection
The address of the remote host for this connection, if connected
The address of the remote host for this connection, if connected
Get the current connection status.
Get the current connection status.
How long, in milliseconds, since the connection was opened
How long, in milliseconds, since the connection was opened
Gets the worker this connection is bound to.
This trait contains all connection-level functions that should be accessable to a top-level user. It is primarily used by the Server DSL and subsequently the Service DSL, where we want to give users control over disconnecting/become, but not over lower-level tasks like requesting writes.