# Wip\_write

**URL:** <https://forum.sierrawireless.com/t/wip-write/3780>\
**Category:** Open AT\
**Created:** [October 23, 2009, 5:15pm UTC](https://forum.sierrawireless.com/t/wip-write/3780 "2009-10-23T17:15:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicool67](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nicool67](https://forum.sierrawireless.com/u/nicool67)\
**Post date:** [October 23, 2009, 5:15pm UTC](https://forum.sierrawireless.com/t/wip-write/3780/1 "2009-10-23T17:15:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [October 23, 2009, 5:17pm UTC](https://forum.sierrawireless.com/t/wip-write/3780/2 "2009-10-23T17:17:59Z")

</div>

> [@nicool67](#):
>
> The idea is to avoid the WIP\_WRITE events.

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

---

<div class="post-metadata">

**Author:** ![nicool67](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nicool67](https://forum.sierrawireless.com/u/nicool67)\
**Post date:** [October 23, 2009, 6:51pm UTC](https://forum.sierrawireless.com/t/wip-write/3780/3 "2009-10-23T18:51:28Z")

</div>

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

Thanks!

---

<div class="post-metadata">

**Author:** ![tomalex](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tomalex](https://forum.sierrawireless.com/u/tomalex)\
**Post date:** [October 24, 2009, 3:19pm UTC](https://forum.sierrawireless.com/t/wip-write/3780/4 "2009-10-24T15:19:24Z")

</div>

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.
