rpcstream(3I)
π rpcstream β bestie edition π
okay so this is rpcstream(3I) from the InterViews Reference Manual, and honestly? it's giving "streams but make it RPC." let's get into it π«Ά
β¨ NAME β¨
rpcstream β an iostreamb that's been specialized to RPC requests. that's it, that's the girl π
πΈ SYNOPSIS πΈ
#include <Dispatch/rpcstream.h>
π¦ DESCRIPTION π¦
so like, rpcstream, irpcstream, and orpcstream are the glow-ups of iostream, istream, and ostream respectively, but for RPC requests. meaning: the streambuf hanging out with them is gonna be an rpcbuf. no cap.
and here's the tea π β conversions are formatted (aka ASCII), so your datums need to be separated by space characters. don't forget or it's over for you bestie π
π CONSTRUCTORS π
rpcstream()β constructs an unopenedrpcstream. just a lil baby stream, not connected to anything yet. iconic.
π PUBLIC OPERATIONS π
void listen(int port)void connect(const char* host, int port)β create a connection. any failure setsios::failbitin the error state. so if it doesn't work, it tells you. periodt.int accept()β accept a pending connection and return the new file descriptor. lowkey the moment we've all been waiting for β¨void attach(int fd)β attach to a pre-existing connection. like adopting a connection that's already been through it πvoid close()β break a connection. the error state gets cleared except on failure. so basically: clean exit, clean vibes; fail, and the error state stays mad at you πvoid nonblocking(boolean)void verbose(boolean)β enable or disable non-blocking I/O and/or printing of error messages. your choice bestie, toggle away ποΈrpcbuf* rdbuf()β return a pointer to therpcbufthat therpcstreamcreated. here's ur buf, bestie π«΄boolean incomplete_request()void incomplete_request(boolean)β get or set a flag. it's used by the operations that insert anRpcHdrinto anrpcstreamor extract anRpcHdrfrom anrpcstream. so yeah, the header-inserting/extracting girlies rely on this one π§
π SEE ALSO π
IOS.INTRO(3C++)iostreamb(3I)rpcbuf(3I)
go read those too, fr fr. iykyk π
and that's a wrap on the rpcstream(3I) page from the InterViews Reference Manual, dated 27 March 1991 π slay, bye bestie ππ
β¨
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms