Documentation ¶
Overview ¶
Package canrpc implements net/rpc client and server objects. It is possible to register a can.Device with a server, and to speak to the server via can.Device on the client side.
The package automatically registers a driver with the can package drivers list under the name "rpc". If, for example, a server is running on host 192.168.1.2, port 6000, the address provided to to the can.Open call would be written as:
rpc:192.168.1.2:6000
An optional name can be appended, prefixed by a slash, if the server is exporting multiple CAN devices:
rpc:192.168.1.2:6000/device2
The name must, of course, match the one configured in the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.