simB0.getHandles
Description
|
Return a list of active handles |
Lua synopsis |
table[] handles=simB0.getHandles()
|
Lua parameters |
- |
Lua return values |
handles (table of string): list of handles. |
Python synopsis |
list handles=simB0.getHandles()
|
See also
|
|
simB0.nodeCleanup
simB0.nodeCreate
simB0.nodeDestroy
simB0.nodeInit
simB0.nodeSetAnnounceTimeout
simB0.nodeSpin
Description
|
Call nodeSpinOnce() continuously |
Lua synopsis |
simB0.nodeSpin(string handle)
|
Lua parameters |
handle (string): the node handle |
Lua return values |
- |
Python synopsis |
simB0.nodeSpin(string handle)
|
See also
|
|
simB0.nodeSpinOnce
simB0.pingResolver
Description
|
Check if resolver node is reachable |
Lua synopsis |
bool running=simB0.pingResolver()
|
Lua parameters |
- |
Lua return values |
running (bool): true if the resolver node is running and reachable |
Python synopsis |
bool running=simB0.pingResolver()
|
See also
|
|
simB0.publisherCreate
simB0.publisherDestroy
simB0.publisherPublish
simB0.serviceClientCall
simB0.serviceClientCallJSON
Description
|
wrap serviceClientCall with JSON encoding/decoding |
Lua synopsis |
table[] response=simB0.serviceClientCallJSON(string serviceClientHandle, table[] request)
|
Lua parameters |
serviceClientHandle (string): the service client handle
request (table): a Lua table to be serialized with JSON
|
Lua return values |
response (table): a Lua table with the deserialized JSON payload |
Python synopsis |
list response=simB0.serviceClientCallJSON(string serviceClientHandle, list request)
|
See also
|
|
simB0.serviceClientCreate
simB0.serviceClientDestroy
simB0.serviceServerCreate
Description
|
Create a new service server. |
Lua synopsis |
string handle=simB0.serviceServerCreate(string nodeHandle, string service, string callback="", bool managed=true, bool notifyGraph=true)
|
Lua parameters |
nodeHandle (string): node handle
service (string): service name
callback (string, default: ""): lua calback to call when a request is received
managed (bool, default: true): managed flag
notifyGraph (bool, default: true): notify graph flag
|
Lua return values |
handle (string): a handle to the new service server |
Python synopsis |
string handle=simB0.serviceServerCreate(string nodeHandle, string service, string callback="", bool managed=true, bool notifyGraph=true)
|
See also
|
simB0.serviceClientCall simB0.serviceClientCreate simB0.serviceClientDestroy simB0.serviceServerDestroy simB0.socketInit simB0.socketPoll simB0.socketRead simB0.socketSetCompression simB0.socketSpinOnce simB0.socketWrite
|
simB0.serviceServerDestroy
simB0.socketCleanup
simB0.socketInit
simB0.socketPoll
simB0.socketRead
simB0.socketSetCompression
simB0.socketSetOption
Description
|
Set a low-level socket option. Available options:
- lingerPeriod
- backlog
- readTimeout
- writeTimeout
- immediate
- conflate
- readHWM
- writeHWM
|
Lua synopsis |
simB0.socketSetOption(string handle, string option, int value)
|
Lua parameters |
handle (string): socket handle
option (string): option key.
value (int): option value.
|
Lua return values |
- |
Python synopsis |
simB0.socketSetOption(string handle, string option, int value)
|
See also
|
|
simB0.socketSpinOnce
simB0.socketWrite
simB0.subscriberCreate
Description
|
Create a new subscriber. |
Lua synopsis |
string handle=simB0.subscriberCreate(string nodeHandle, string topic, string callback="", bool managed=true, bool notifyGraph=true)
|
Lua parameters |
nodeHandle (string): node handle
topic (string): topic name
callback (string, default: ""): lua calback to call when a message is received
managed (bool, default: true): managed flag
notifyGraph (bool, default: true): notify graph flag
|
Lua return values |
handle (string): a handle to the new subscriber |
Python synopsis |
string handle=simB0.subscriberCreate(string nodeHandle, string topic, string callback="", bool managed=true, bool notifyGraph=true)
|
See also
|
simB0.publisherCreate simB0.publisherDestroy simB0.publisherPublish simB0.socketCleanup simB0.socketInit simB0.socketPoll simB0.socketRead simB0.socketSetCompression simB0.socketSpinOnce simB0.socketWrite simB0.subscriberDestroy
|
simB0.subscriberDestroy
|