Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VERSION is the current NetworkTables protocol revision VERSION = [2]byte{0x03, 0x00} // IDENTITY is the identity of the client or server IDENTITY = "ABREUVOIR" )
Functions ¶
func InitClient ¶
func InitClient() error
InitClient initializes the client and the connection to the remote server.
func SetAddress ¶
func SetAddress(newAddress string)
SetAddress sets the address of the remote server It's advised to use a local host name instead of an IP for better
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the NetworkTables Client
func (*Client) GetBoolean ¶
GetBoolean fetches a boolean at the specified key
type ClientMessageHandler ¶
type ClientMessageHandler struct {
// contains filtered or unexported fields
}
ClientMessageHandler handles incoming messages for the client.
type ClientStatus ¶
type ClientStatus int
ClientStatus is the enum type to represent the different states/statuses the client could have
const ( // ClientDisconnected indicates that the client cannot reach // the server ClientDisconnected ClientStatus = iota // ClientConnected indicates that the client has connected to // the server but has not began actual communication ClientConnected // ClientSentHello indicates that the client has sent the hello // packets and is waiting for a response from the server ClientSentHello // ClientStartingSync indicates that the client has received the // server hello and is beginning to synchronize values with the // server. ClientStartingSync // ClientInSync indicates that the client is completely in sync // with the server and has all the correct values. ClientInSync )
Click to show internal directories.
Click to hide internal directories.