NZSmartie / CoAP.Net

Constrained Applciaiton Protocol (CoAP) [RFC7252] for .Net Standard
https://nzsmartie.co.nz/CoAP.Net/
Apache License 2.0
34 stars 11 forks source link

Block-Wise Transfers (RFC 7959) #6

Open NZSmartie opened 6 years ago

NZSmartie commented 6 years ago

This is an outline of my progress of implementing RFC 7959.

Note: Block1 is request payload to a resource. Block2 is a response from a resource.

CoapClient

CoapServer

NZSmartie commented 6 years ago

Need to make sure the Stream interface behaviour is used properly. At the moment. When invoking Write, the data is queued and returns immediately. Instead. the write operation should begin right away (if possible). and write as many full blocks then return. the last incomplete block should be the only thing to write during a Close or Dispose