Hi averyone!!!, is there a way to know the free space of the sending buffer for any tcpip socket?. The idea is to avoid the WIP_WRITE events.

I apreciatte any help.
Best regards.

That doesn’t sound like a good idea in an essentially Event-Driven environent like Open-AT…! :open_mouth:

I know, but its possilbe to know the free size of that buffer?.


Your questions suggest a bad way of thinking regarding the OAT. Neverthless, you will know the actual free space of writable output buffer if you set the WIP_COPT_SND_LOWAT to 1. Default is much more. In this case if one byte (or more) is transmitted you will be notified in the channel event handler and the writeable parameter will show you the available buffer space. However, if you set this to low value it means additional load for the application without real benefit.