Documentation ¶
Overview ¶
The netchanrpc package makes it possible to run an RPC service over netchan.
Index ¶
- func Dial(imp *netchan.Importer, service string) (net.Conn, error)
- func Listen(exp *netchan.Exporter, service string) (net.Listener, error)
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (r Conn) Read(buf []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetReadTimeout(nsec int64) error
- func (c *Conn) SetTimeout(nsec int64) error
- func (c *Conn) SetWriteTimeout(nsec int64) error
- func (w Conn) Write(buf []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
Dial makes a connection to the named netchan service, which must have been previously exported with a call to Listen.
Types ¶
type Conn ¶
Conn represents a netchan connection. R and W hold the channels used by the connection. The Read and Write methods use them to receive and send data. The W channel should not be closed - it will be closed when Close is called on the connection itself.
func (*Conn) RemoteAddr ¶
func (*Conn) SetReadTimeout ¶
func (*Conn) SetTimeout ¶
func (*Conn) SetWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.