Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven Gestegård Robertz
LabComm
Commits
6584be3e
Commit
6584be3e
authored
13 years ago
by
Sven Robertz
Browse files
Options
Downloads
Patches
Plain Diff
started sketching NRT protocol
parent
3e252daa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/c/experimental/throttlenet/throttlenet.lc
+84
-0
84 additions, 0 deletions
lib/c/experimental/throttlenet/throttlenet.lc
with
84 additions
and
0 deletions
lib/c/experimental/throttlenet/throttlenet.lc
0 → 100644
+
84
−
0
View file @
6584be3e
typedef short number_t; // placeholder for protocol buffers like encoding
typedef byte[6] eth_addr;
// *** Service registration, lookup, and channel allocation
typedef struct {
string creatorId;
string svcId;
int version;
} serviceID; // Should probably be a PalCom-like struct
typedef struct {
string key;
byte value[-];
} property_t; // used for type info, grounding, etc.
typedef struct {
string name;
property_t properties[-];
param_t params[-];
} command_t;
typedef struct {
string name;
property_t properties[-];
} param_t;
typedef struct {
servicID svcID;
string name;
command_t commands[-];
byte data_description[-];
} serviceDescription; // d:o PalCom
typedef struct {
eth_addr device; // or more generic, as in PalCom?
serviceID svcID;
number_t instanceID;
string instance_name;
} service_instance;
sample struct {
service_instance svc;
number_t chnID; // the channel to use for connecting to the service
} service_register;
sample boolean ack;
sample struct {
} services_query;
sample struct {
service_instance svcs[-]
} services_list;
sample struct {
service_instance svc;
number_t bytes_per_period;
float periodtime; // in seconds // or number_t microseconds?
// importance?
} service_allocate_channel; // client -> GlobeThrottle to request connection
sample struct {
// requesting service instance?
number_t chnId; // the channel to send the connect message on
} service_channel_ACK;
sample struct {
float max_utilization;
// min period?
} service_channel_NACK;
// *** service to service connection negotiation
typedef struct {
number_t sender_chnId; // The chnID at the sender's side that will receive the response, and subsequent traffic;
} connect_t;
sample connect_t connect_request;
sample connect_t connect_response;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment