lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] How to use RawAPI to send the data ?


From: 陳 小擁
Subject: [lwip-users] How to use RawAPI to send the data ?
Date: Sat, 25 Mar 2006 09:20:29 +0800 (CST)

Hi, all :
    I am going to use RawAPI to send the data between PC to my platform based on ARM. my platform can recieved data form PC now . However , when i try to send data form my platform to PC , it dosen't work ! my code is below :
 
if(tcp_sndbuf(pcb) < hs->left) {
    len = tcp_sndbuf(pcb);
  } else {
    len = hs->left;
  }
  do {
    err = tcp_write(pcb, hs->file, len, 0);
    if(err == ERR_MEM) {
      len /= 2;
    }
  } while(err == ERR_MEM && len > 1); 
 
  if(err == ERR_OK) {
    hs->file += len;
    hs->left -= len;
  }
 
Is it somthing wrong in this code ? Can someone tell me how to send data by RawAPI . Thanks !

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


reply via email to

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