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

rpcstream - iostreamb specialized to RPC requests

Constructors

rpcstream()
              Construct an unopened rpcstream.

Description

       rpcstream,  irpcstream,  and  orpcstream  specialize iostream, istream, and ostream, respectively, to RPC
       requests.  That is, the associated streambuf will be an rpcbuf.  Conversions will be formatted (that  is,
       ASCII) so datums will need to be separated by space characters.

Name

       rpcstream - iostreamb specialized to RPC requests

Public Operations

voidlisten(intport)voidconnect(constchar*host,intport)
              Create a connection.  Any failure sets ios::failbit in the error state.

       intaccept()
              Accept a pending connection and return the new file descriptor.

       voidattach(intfd)
              Attach to a pre-existing connection.

       voidclose()
              Break a connection.  The error state is cleared except on failure.

       voidnonblocking(boolean)voidverbose(boolean)
              Enable or disable non-blocking I/O and/or printing of error messages.

       rpcbuf*rdbuf()
              Return a pointer to the rpcbuf created by the rpcstream.

       booleanincomplete_request()voidincomplete_request(boolean)
              Get  or  set a flag.  Used by the operations that insert an RpcHdr into an rpcstream or extract an
              RpcHdr from an rpcstream.

See Also

       IOS.INTRO(3C++), iostreamb(3I), rpcbuf(3I)

InterViews                                        27 March 1991                                    rpcstream(3I)

Synopsis

#include<Dispatch/rpcstream.h>

See Also