protocol buffers with C++ client and C# back-end? -


How can you add C # back-end to the C + + front-end with an HTTP or web-service counter? ?

There are three parts; The server (looks like C #), clients (such as C ++) and transport Take them apart, and start with the most important:

  • Transport: The big decision here is what size data you want. You mention protocol buffers, so we can say binary - but this can be:

    • A raw octet-stream (think: downloading an image from a web-server)
    • A SAP web service is returning a stream or byte []
    • MTO returned the same SOAP web service

    Any work should be done; Depending on the equipment available to choose, the important thing is that the wire gets a share of binary.

    You also need to think about the data definition at this point; You can define your schema, and most protocol buffers include a tool to generate mail classes in the implementation.

  • Server: Depending on the above choice, this is either a handler ( IHttpHandler ) or a web-service class. Either way, their job is to actually run some logic and return a byte stream. How you can get your data, then eventually DTO type (in many cases generated from .proto, but strictly is not necessary) is to populate and run it through the serialization API For, the result of the writing stream
  • Customers: in the same reverse;

Various Protobuf implementations (C ++, C # etc.) are listed.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -