[Top][All Lists]

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

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

From: 陳 小擁
Subject: Re: Re: Re: Re: [lwip-users] Can't send the data by Raw API
Date: Thu, 16 Feb 2006 19:34:17 +0800 (CST)

Thanks for your help, i will try it again . address@hidden is my MSN , hope to make friend with you .
Sathya Thammanur <address@hidden> 說:
Take a look at the doc/rawapi.txt document in the lwip installation area. This has all the functions that you would need for writing TCP and UDP applications.
Here is a snippet of a function that sends data.

  err_t err = ERR_OK;
  u16_t len;

  /* We cannot send more data than space available in the send
     buffer. */    
  if (tcp_sndbuf(pcb) < ps->left) {
    len = tcp_sndbuf(pcb);
  } else {
    len = ps->left;

  if (len > 0) {
    err = tcp_write(pcb, ps->buf_p, len, 1);



YM - 離線訊息

reply via email to

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