RpcWriter(3I)

πŸ’– RpcWriter(3I) β€” InterViews Reference Manual πŸ’–

okay bestie, gather round, we're talking about RpcWriter from the InterViews manual (section 3I, iykyk) 🫢


✨ NAME ✨

RpcWriter β€” the girl who writes RPC requests to a server πŸ’Œ


🌸 SYNOPSIS 🌸

#include <Dispatch/rpcwriter.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

So an RpcWriter β€” and lowkey this is actually an instance of a class derived from RpcWriter, keep up β€” writes RPC requests to a server. that's her whole job. that's the gig. πŸ’…

And like, if you're making a derived class, the move is to add member functions that send RPC requests matching your RPC service's protocol. that's the assignment, bestie. no cap. ✨


πŸŽ€ CONSTRUCTORS πŸŽ€

here's the lineup, all four of them, iconic behaviour:

RpcWriter(const char* path, boolean fatal, boolean binary)
RpcWriter(const char* host, int port, boolean fatal, boolean binary)
RpcWriter(int fd, boolean fatal, boolean binary)
RpcWriter(rpcstream* server)
  • open a connection to an RPC service at its registered host name and port number β€” orrr give the host name and port number you need to open a connection to the RPC service, or give the number of an already-open file descriptor, or give the address of an already-open rpcstream (that's a connection, bestie). Pick your fighter. πŸ’–
  • negotiate the I/O format β€” binary or formatted, whichever, but only if you're opening a connection. if you're not opening one, no negotiating happening, periodt.
  • fatal β€” terminate the program if errors should be fatal. that's the vibe check. it's giving dramatic but honestly valid. πŸ’€

🌈 SEE ALSO 🌈

  • RpcHdr(3I)
  • RpcRegistry(3I)
  • rpcstream(3I)

go read those next, you'll be obsessed 🧚


mwah πŸ’‹ that's the whole page. this one comes to you from the InterViews era, dated 27 March 1991 β€” yeah she's vintage, she's a classic, and she still ate. πŸ‘‘βœ¨