pipe_connection_server


An os_pipe_connection_server accepts incoming pipe connections on a particular path. This class should be used in conjunction with os_pipe .

Due to operating system limitations, the os_pipe_connection_server class cannot be used on Microsoft Windows 95 platforms.

Library

Pipe<ToolKit>

Declaration

#include <ospace/pipe/pipesrvr.h>

class os_pipe_connection_server

Interface

Constructor
os_pipe_connection_server( const string& path , enum Encoding enc = Ascii )
Constructs a pipe connection server with the identity path . Default enc is Ascii. Valid value for enc can be Ascii or Utf8.

Throws: os_pipe_toolkit_error

Destructor
~os_pipe_connection_server()
Destroys the pipe connection server.
accept
bool accept( os_pipe& pipe , enum Encoding enc = Ascii )
Extracts the first pending connection request and associates it with pipe pipe . Returns true on success. Default enc is Ascii. Valid value for enc can be Ascii or Utf8.

Throws: os_pipe_toolkit_error

<
bool operator<( const os_pipe_connection_server& pipe ) const
Returns true if this pipe's descriptor value is less than pipe 's.
==
bool operator==( const os_pipe_connection_server& pipe ) const
Returns true if this pipe's descriptor value is the same as pipe 's.
(os_desc_t)
operator os_desc_t() const
Returns the native pipe descriptor.
auto_close
void auto_close( bool flag )
If flag is true , closes the descriptor on destruction.
auto_close
bool auto_close() const
Returns true if the pipe will close its descriptor on destruction.
close
void close()
Closes the pipe.

Throws: os_pipe_toolkit_error

descriptor
void descriptor( os_desc_t descriptor )
Sets the native pipe descriptor to descriptor .
descriptor
os_desc_t descriptor() const
Returns the value of the native pipe descriptor.
is_open
bool is_open() const
Returns true if the pipe is open.
path
string path() const
Returns the path to this pipe.

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.