To bind a client and server together using SRPC, the client and server must first establish communication via sockets. Once the client and server have sockets that are connected to each other, they both call an SRPC binding procedure, passing in the file-descriptor for the socket. The SRPC binding procedures use the socket to exchange some information; before returning, they close the socket.
The stub generator creates procedures for both client-side and server-side binding. There is a separate set of binding procedures for each RPC interface. For example, the foo service has two binding procedures:
Once bindings have been generated, they can be used by the client and server code to communicate.
At present there is no way to destroy a binding.