Documentation ¶
Overview ¶
Package srpc gives symmetric bi-directional RPC on top of GO rpc. Two hosts connected via are Client and server both expose RPC calls to each other. Either host may make RPC calls to the other: so each host is both client and server at the same time.
Index ¶
Constants ¶
View Source
const ( IsWrite eventFlag = 1 << iota IsClient IsData )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConn ¶
type ClientConn struct {
// contains filtered or unexported fields
}
func (*ClientConn) Close ¶
func (c *ClientConn) Close() error
type Server ¶
type Server struct { *rpc.Client *rpc.Server EventTag string // contains filtered or unexported fields }
func (*Server) Init ¶
func (r *Server) Init(rwc io.ReadWriteCloser, regs ...interface{})
func (*Server) InitWriter ¶
func (r *Server) InitWriter(wc io.WriteCloser, recycle chan elib.ByteVec, regs ...interface{})
type ServerConn ¶
type ServerConn struct {
// contains filtered or unexported fields
}
func (*ServerConn) Close ¶
func (c *ServerConn) Close() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.