AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
886 stars 184 forks source link

Imp: handle request from server #26

Open AlexStocks opened 4 years ago

AlexStocks commented 4 years ago

At present, the rpc means that only the server can receive request from client and then send back its response. However, the client can not handle the request from the server.

To handle request from server, the client should register its callback. what's more, we have an agreement that the sequence in the request package from the client should be an odd number and the sequence in the request package from server is an even number.

AlexStocks commented 3 years ago

cc @watermelo