Setting the MTU size

Hello everyone,

I use the BL2600 as a server that transmit measured data to a windows PC. For sending the data i use the function sock_awrite(). After i have sent 40x45bytes of data it returns the value 0, which indicates that the send buffer is full.

However i do not know how to act upon this, because it continues for 100 write cycels extra. Do i need to empty the buffer, so yes how do i do that because i can`t find a function specifically for this.

Best regards,