Closed moritzmoritz closed 6 years ago
Hi, By looking back at some existing implementation, I would say you should better use the encode method of the GlowRootElementCollection:
auto root = glow::GlowRootElementCollection::create();
auto command = new glow::GlowCommand(root, glow::CommandType::GetDirectory);
util::OctetStream stream;
root.encode(stream);
and then pass the stream to the libs101 stream encoder like you did. On remark about the version thing: you could use
encoder.encode(LIBEMBER_GLOWDTD_VERSION_MINOR);
encoder.encode(LIBEMBER_GLOWDTD_VERSION_MAJOR);
Hey everyone! I requested access to the google developer group but since now there's no response .. but I need some input what exactly I'm doing wrong.
First of all: I have little c++ experiences. I normally develop in languages like swift, python and so. I'm using the latest
libember
.All what I want to do is to send a normal geDirectory-Request:
In my understanding this is a ASN.1 encoded stream I can use to send over via tcp/ip.
Next I package it up with the s101lib.
And send it via tcp / ip:
What is my misunderstanding of the ember+ protocol ?