Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
600B

  1. namespace Svelto.Services
  2. {
  3. public interface IResponseHandler<ResponseType> : IResponseHandler
  4. {
  5. ResponseType response { get; }
  6. }
  7. public interface IResponseHandler
  8. {
  9. // Called once per frame when data has been received from the network.
  10. bool ReceiveData(byte[] data, int dataLength);
  11. // Called when all data has been received from the server and delivered via ReceiveData.
  12. void CompleteContent();
  13. // Called when a Content-Length header is received from the server.
  14. void ReceiveContentLength(int contentLength);
  15. }
  16. }