logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::unixstream - A more natural C++ 'unixstream' class for use by non-threaded applications.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                              ost::unixstream(3)

Constructor & Destructor Documentation

ost::unixstream::unixstream()
       Construct an unopened 'tcpstream' object.

   ost::unixstream::unixstream(constchar*pathname,intbuffer=512)
       Construct and 'open' (connect) the tcp stream to a remote socket.

       Parameterspathname pathname to socket file
           buffer size for streaming (optional).

   ost::unixstream::unixstream(UnixSocket&unixsock,intbuffer=512)
       Construct and 'accept' (connect) the tcp stream through a server.

       Parametersunixsock socket to accept from.
           buffer size for streaming (optional).

Detailed Description

       A more natural C++ 'unixstream' class for use by non-threaded applications.

       This class behaves a lot more like fstream and similar classes.

       Author
           Alex Pavloff alex@pavloff.net

       C++ 'fstream' style unixstream class.

Member Function Documentation

voidost::unixstream::close(void)
       Close the active tcp stream connection.

   voidost::unixstream::open(constchar*pathname,intbuffer=512)[inline]
       Open a tcp stream connection. This will close the currently active connection first.

       Parameterspathname pathname to socket file
           buffer size for streaming (optional)

       References ost::UnixStream::connect().

   voidost::unixstream::open(UnixSocket&unixsock,intbuffer=512)
       Open a tcp stream connection by accepting a tcp socket.

       Parametersunixsock socket to accept from.
           buffer size for streaming (optional)

   boolost::unixstream::operator!()const
       Test to see if stream is open.

Name

       ost::unixstream - A more natural C++ 'unixstream' class for use by non-threaded applications.

Synopsis

       #include <unix.h>

       Inherits ost::UnixStream.

   PublicMemberFunctionsunixstream ()
           Construct an unopened 'tcpstream' object.
       unixstream (const char *pathname, int buffer=512)
           Construct and 'open' (connect) the tcp stream to a remote socket.
       unixstream (UnixSocket &unixsock, int buffer=512)
           Construct and 'accept' (connect) the tcp stream through a server.
       void open (const char *pathname, int buffer=512)
           Open a tcp stream connection.
       void open (UnixSocket &unixsock, int buffer=512)
           Open a tcp stream connection by accepting a tcp socket.
       void close (void)
           Close the active tcp stream connection.
       bool operator! () const
           Test to see if stream is open.

   AdditionalInheritedMembers

See Also