lwip-users
[Top][All Lists]
Advanced

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

Re : RE : [lwip-users] How to begin using lwIP stack


From: Antonio de Angelis
Subject: Re : RE : [lwip-users] How to begin using lwIP stack
Date: Wed, 02 Jul 2008 10:50:11 +0200
User-agent: Opera Mail/9.50 (Win32)

Hi,

firs of all thank you for your reply. I've modified my lwipcfg_msvc.h file with appropriate values and now when I start the Test.exe application I obtain these results:

Starting lwIP, loopback interface IP is 127.0.0.1
Starting lwIP, local interface IP is 192.168.1.200
 0: \Device\NPF_GenericDialupAdapter
 1: \Device\NPF_{7A579B11-E5FE-4EFE-AB55-AD42C66289D1}
 2: \Device\NPF_{48C5A4AA-056F-4955-BB40-55BAD478E21C}
 3: \Device\NPF_{7F6AC404-196A-4726-B708-2EB0643B7673}
USE: Intel(R) PRO/100 VE Network Connection (Microsoft's Packet Scheduler)
MAC: 00:13:A9:08:7E:F4
link_callback==UP
status_callback==UP, local interface IP is 192.168.1.200
ping: send 192.168.1.1
3com.com: 192.136.34.41
sntp_process: Wed Jul 02 10:23:44 2008
ping: recv - 999 ms - timeout
ping: send 192.168.1.1
ping: recv - 999 ms - timeout
ping: send 192.168.1.1
ping: recv 192.168.1.1 2 ms
ping: send 192.168.1.1
ping: recv - 999 ms - timeout
ping: send 192.168.1.1
ping: recv 192.168.1.1 2 ms
ping: send 192.168.1.1
ping: recv - 999 ms - timeout
ping: send 192.168.1.1
ping: recv 192.168.1.1 1 ms
ping: send 192.168.1.1
ping: recv - 999 ms - timeout
ping: send 192.168.1.1
ping: recv 192.168.1.1 2 ms
ping: send 192.168.1.1
ping: recv - 1000 ms - timeout

until I press a key. I'm using the last stable contrib-1.3.0, (23 Mar 2008), not the version on CVS, and i cannot decide what apps to start in Test.exe.

I think that now the stack is working, isn't it?

I'm interested in using lwIP as TCP/IP stack in Windows environment because I've to create two simple applications, a server and a client, that establish a tcp connection. Then I have to create a more complex application implementing the modbus protocol on tcp, and this application maybe will be ported on an embedded system. But now I'm concentrating on simulate on the same machine a tcp connection between a client and a server and then build on this communication an application which uses the modbus protocol on top of the tcp. I would appreciate if you can send me examples on how to create a tcp server and a tcp client in such a way. Now I'm studying the test application, i try to remove the code that i don't need and then i try to modify it to my needs. But I don't understand what I have to do to initialize the lwip stack before i try to create the server or the client.



In data 01 luglio 2008 alle ore 18:21:49, Frédéric BERNON <address@hidden> ha scritto:

Hi,

When you have create a lwipcfg_msvc.h file, do you have set values to be compatible with your network (LWIP_PORT_INIT_IPADDR, LWIP_PORT_INIT_GW, LWIP_PORT_INIT_NETMASK) ?

I suppose you don't use the last lwip/contrib/ports/win32, because the "ping" application is enabled in your case. Last contrib files allow to enable/disable "apps" started in the test.

Do use the test.c as starting point, you could remove all the code inside the apps_init() function, and add your own one.

Question: what is your interest of using lwIP as IP stack on a Windows environment ?

To help you on such problems, perhaps it will be faster to chat on the lwIP IRC channel (#lwip on chat.freenode.net).
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr

Plan d'accès au siège social

====================================
P Avant d'imprimer, penser à l'environnement


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Antonio de Angelis
Envoyé : lundi 30 juin 2008 23:58
À : address@hidden
Objet : [lwip-users] How to begin using lwIP stack


Hi All,

I'm a new user of lwIP, i have to work with the win32 port of the stack.
I've downloaded the stable 1.3.0 release and the contrib 1.3.0 files.
I've succesfully compiled in Visual Studio 2008 the msvc8 port with the
three projects (lwIP, lwIP_pktif, lwIP_test). When I launch the
executable, Test.exe, i see these messages on screen:

Starting lwIP, loopback interface IP is 127.0.0.1
Starting lwIP, local interface IP is 192.168.1.200
 0: \Device\NPF_GenericDialupAdapter
 1: \Device\NPF_{7A579B11-E5FE-4EFE-AB55-AD42C66289D1}
 2: \Device\NPF_{48C5A4AA-056F-4955-BB40-55BAD478E21C}
 3: \Device\NPF_{7F6AC404-196A-4726-B708-2EB0643B7673}
USE: Intel(R) PRO/Wireless 3945ABG Network Connection (Microsoft's
Packet Scheduler)
MAC: 00:13:02:65:C3:CB
link_callback==UP
status_callback==UP, local interface IP is 192.168.1.200
ping: send 192.168.1.1
ping: recv - 997 ms - timeout
ping: send 192.168.1.1
ping: recv - 998 ms - timeout
sntp_request: not recvfrom==0
ping: send 192.168.1.1
ping: recv - 998 ms - timeout
ping: send 192.168.1.1
ping: recv - 998 ms - timeout
3com.com: <not found>
ping: send 192.168.1.1
ping: recv - 998 ms - timeout
...
...until i press a key. Is it the correct behaviour of the test
application? Is the stack working correctly? I want to use the stack to
implement a TCP connection beetween hosts on a Win32 platform. How do I
have to design my application? I want to use the socket API, so what do
I have to do to build the application (e.g. what headed files to
include, what libraries to link...etc.). Sorry but i'm not expert in
network programming and I want to learn how to use the lwIP stack! Regards

Antonio de Angelis




_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users



--
Creato con il rivoluzionario client e-mail di Opera: http://www.opera.com/mail/




reply via email to

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