aws-iot-device-sdk-embedded-C icon indicating copy to clipboard operation
aws-iot-device-sdk-embedded-C copied to clipboard

Update plaintext_poix transport interface

Open chinglee-iot opened this issue 2 years ago • 0 comments

  • EAGAIN or EWOULDBLOCK should return zero to indicate this send or recv operation can be retried.
  • Use error code instead of assert to check the invalid parameters.

Reference this setsockopt document.

If a receive operation has blocked for this much time without receiving additional data, it shall return with a partial count or errno set to [EAGAIN] or [EWOULDBLOCK] if no data is received.

If a send operation has blocked for this time, it shall return with a partial count or with errno set to [EAGAIN] or [EWOULDBLOCK] if no data is sent.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

chinglee-iot avatar Nov 02 '21 10:11 chinglee-iot