//called asynchronously to deliver data from server private void receiveAction(MpxSocket <MpxClientTransport> socket, WireMsg wm) { if (!Running) { return; } var response = deserialize(ref wm); Glue.ClientDeliverAsyncResponse(response); }
//called asynchronously to deliver data from client socket private void socketReceiveAction(MpxSocket <MpxServerTransport> socket, WireMsg wm) { if (!Running) { return; } var request = deserialize(ref wm); request.__setServerTransport(this); request.__SetBindingSpecificContext(socket); Glue.ServerDispatchRequest(request); }