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

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to