Yevhen Beshkarov “IPC with Protobuf»

Please download to get full document.

View again

All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
 4
 
  1. www.luxoft.com Beshkarov Yevhen IPC with Protobuf 2. www.luxoft.com What is IPC 2 The mechanisms an operating system provides to allow the processes to manage shared…
Share
Transcript
  • 1. www.luxoft.com Beshkarov Yevhen IPC with Protobuf
  • 2. www.luxoft.com What is IPC 2 The mechanisms an operating system provides to allow the processes to manage shared data.
  • 3. www.luxoft.com Signals. Anonymous Pipes. Named Pipes or FIFOs. SysV Message Queues. POSIX Message Queues. SysV Shared memory. POSIX Shared memory. SysV semaphores. Sockets What types of IPC are 3
  • 4. www.luxoft.com Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. Protocol buffers currently support generated code in Java, Python, Objective-C, and C++. With proto3 language version, you can also work with Dart, Go, Ruby, and C#, with more languages to come. What is Protobuf 4
  • 5. www.luxoft.com Proto Language 5 syntax = "proto3"; message SearchRequest { string query = 1; int32 page_number = 2; int32 result_per_page = 3; } message Outer { // Level 0 message MiddleAA { // Level 1 message Inner { // Level 2 int64 ival = 1; bool booly = 2; } } message MiddleBB { // Level 1 message Inner { // Level 2 int32 ival = 1; bool booly = 2; } } }
  • 6. www.luxoft.com 6
  • 7. www.luxoft.com Message Processing 7
  • 8. www.luxoft.com Dispatching 8
  • 9. www.luxoft.com How to Add Dispatchers 9
  • 10. www.luxoft.com Processing 10
  • 11. www.luxoft.com Message Serialization 11
  • 12. www.luxoft.com Message Deserialization 12
  • 13. www.luxoft.com GitHub: https://github.com/beshkarev/Protobuf Links 13
  • 14. www.luxoft.com Thank you 14
  • Related Search
    Similar documents
    View more
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x