You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a byte array (actually the raw packet data) and I know its length. However, it may contain '\0' in the middle so that the example code doesn't work for me - such '\0' will be regarded as the end of string and I cannot send the whole array together to the destination.
I'm not quite familiar with Wangle and any idea for how to build a pipeline for my purpose?
Thanks!
P.S.
The pipeline in the sample code is showed below, it works perfect for the printable strings:
auto pipeline = EchoPipeline::create();
pipeline->addBack(AsyncSocketHandler(sock));
pipeline->addBack(
EventBaseHandler()); // ensure we can write from any thread
pipeline->addBack(LineBasedFrameDecoder(8192, false));
pipeline->addBack(StringCodec());
pipeline->addBack(EchoHandler());
The text was updated successfully, but these errors were encountered:
Summary:
As a step in the plan to migrate LogDevice to using fbcode_builder as
the primary build method, allow LogDevice to build without submodules.
In place of the self compiled modules, the CMake scripts will look in
the system (or provided prefix locations) and use precompiled modules
there. Users can then use fbcode_builder to ensure those required
modules are built and available.
* Use new 'folly_test_util' library rather than referencing sources
directly
Pull Request resolved: facebookarchive/LogDevice#71
Reviewed By: AhmedSoliman
Differential Revision: D14578119
Pulled By: calebmarchent
fbshipit-source-id: 36400d41d3f1906919706d20d0fb53195fec2e63
I have a byte array (actually the raw packet data) and I know its length. However, it may contain '\0' in the middle so that the example code doesn't work for me - such '\0' will be regarded as the end of string and I cannot send the whole array together to the destination.
I'm not quite familiar with Wangle and any idea for how to build a pipeline for my purpose?
Thanks!
P.S.
The pipeline in the sample code is showed below, it works perfect for the printable strings:
The text was updated successfully, but these errors were encountered: