TokenPipeEnd::TokenPipeEnd

Constructors

Synopses

Declared in <util/tokenpipe.h>

Deleted copy constructor; the endpoint is move-only.

TokenPipeEnd(TokenPipeEnd const& other) = delete;
» more...

Move-constructs an endpoint, taking ownership of the other's descriptor.

TokenPipeEnd(TokenPipeEnd&& other);
» more...

Wraps a file descriptor as one end of a token pipe.

TokenPipeEnd(int fd = -1);
» more...

Parameters

NameDescription
otherthe endpoint that would be copied
fdthe file descriptor to adopt, or -1 for a closed end