[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Raw TCP/IP interface - tcpip_init
From: |
Bertrik Sikken |
Subject: |
RE: [lwip-users] Raw TCP/IP interface - tcpip_init |
Date: |
Wed, 12 Oct 2005 14:45:14 +0200 |
Hi,
Regarding 1) and 2): As far as I know, tcpip.c and the
functions in it are not part of the raw API
I don't know if it is easy to run PPP over the raw
API.
Regarding 3): I think you can simply call tcp_tmr
periodically which will handle the calls to
tcp_fasttmr and tcp_slowtmr for
you.
Kind regards,
Bertrik Sikken |
System Designer
|
Technolution B.V. |
|
Telephone: |
+31(0)182 59 40 00 |
Fax: |
+31(0)182 53 97 36 |
E-mail: |
address@hidden |
Visit us at: |
www.technolution.nl |
Mailing address: |
P.O. Box 2013 - 2800 BD Gouda - The Netherlands |
Address: |
Zuidelijk Halfrond 1 - 2801 DD Gouda - The Netherlands |
GPS: |
N 52°.00'58,2" E 4°.41'05,2" |
This e-mail is intended exclusively for the addressee(s), and may not
be passed on to, or made available for use by any person other than the
addressee(s). Technolution B.V. rules out any and every liability
resulting from any electronic
transmission. |
Hello,
Iam trying to write ftp client on the top of stack. I have to send the data
via dial up connection thus has to run PPP too. I have few queries here.
1. According to the doc "rawapi.txt" - "The TCP/IP code
and the application program both run in the same thread". But when I call
tcpip_init() a new thread (tcpip_thread) is created. So basically we have
two different threads. Does it mean that Iam not supposed to call tcpip_init()
if Iam using raw TCP/IP interface? If I don't call this function PPP is not
going to work.
2. In case if I call tcpip_init(), Should I call
tcp_slowtmr and tcp_fastmr functions (as
"rawapi.txt" suggests). In case yes, Should they be in application's context or
tcpip_thread context? The problems is : If it in in application's
context, these function will access the global structures (active pcbs etc)
which may be accessed by TCP/IP stack (say when an input packet comes).
3. Is it neccassary to
call tcp_slowtmr and
tcp_fastmr functions?
If some has done this type of implmentation, please send the
code.
Iam new to this implementation. Any help will be deeeply appreciated.
Thanks in Advance....