Named pipe server endpoint. More...
#include <File.h>
Public Member Functions | |
| Result | create (StringSpan name, NamedPipeServerOptions options={}) |
| Creates a named pipe server endpoint. | |
| Result | accept (PipeDescriptor &outConnection) |
| Accept one client connection and return it as a connected PipeDescriptor. | |
| Result | close () |
| Closes the listening endpoint. | |
Named pipe server endpoint.
Use create + accept to obtain connected PipeDescriptor pairs.
| Result SC::NamedPipeServer::accept | ( | PipeDescriptor & | outConnection | ) |
Accept one client connection and return it as a connected PipeDescriptor.
| [out] | outConnection | Connected read/write pipe handles. |
| Result SC::NamedPipeServer::close | ( | ) |
| Result SC::NamedPipeServer::create | ( | StringSpan | name, |
| NamedPipeServerOptions | options = {} ) |
Creates a named pipe server endpoint.
| name | Platform-native absolute endpoint name. Use filesystem absolute paths on POSIX and \\.\pipe\... or \\?\pipe\... on Windows. See SC::NamedPipeName::build for a cross-platform helper. |
| options | Server creation options. |