lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [lwip-users] Can't send the data by R aw API


From: 陳 小擁
Subject: Re: Re: [lwip-users] Can't send the data by R aw API
Date: Wed, 15 Feb 2006 14:55:26 +0800 (CST)

Hi Sathya:
    thanks for your help. however, how can i check the tcp send buffer? which function can i use ? or i have to write it by myself ? someone have told me that if i want to use tcp_write , i have use tcp_output follow it .
>     temp_pcb = tcp_active_pcbs ;
>    err = tcp_write(temp_pcb , &abc[j] , sizeof(abc[j]),0) ;
>    tcp_output(temp_pcb) ;
is it right? thanks again !

 
You will need to keep checking the tcp send buffer for the amount of space left in the buffer before you call tcp_write. Keep calling a function that checks the tcp snd buf for space available and send accordingly.

hope this helps

Sathya

_______________________________________
YM - 離線訊息
就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
http://messenger.yahoo.com.hk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]