Can ZeroMQ be used to accept traditional socket requests?

前端 未结 2 1675
Happy的楠姐
Happy的楠姐 2021-02-15 10:31

I\'m trying to re-write one of our old Servers using ZeroMQ, for now I have the following Server setup, (which works for Zmq requests):

    using (var context =          


        
2条回答
  •  孤城傲影
    2021-02-15 11:09

    You probably have to use zmq's RAW socket type (instead of REP) to connect with and read client data without zmq-specific framing.

    HTTP Server in C (from Pieter's blog)
    http://hintjens.com/blog:42

    RAW Socket type info
    https://github.com/hintjens/libzmq/commit/777c38ae32a5d1799b3275d38ff8d587c885dd55

提交回复
热议问题