lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] TCP server and client on the same machine


From: address@hidden
Subject: Re: [lwip-users] TCP server and client on the same machine
Date: Thu, 07 Jan 2010 09:57:33 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

You might want to add these lines to your lwipopt.h to enable lwip-internal loopback traffic:

#define LWIP_HAVE_LOOPIF           1
#define LWIP_NETIF_LOOPBACK        1

These lines enable loopback in the same lwip process, as from reading your post, I think that's what you want.

Simon


chandra shekhar wrote:
Hi all,
        
I am new to LWIP and networking. I'm trying to build a simple TCP server and a TCP client on the same machine as two separate processes (same ethernet adapter). The server waits for the client to connect, then, when it receives the incoming message, it prints the message on screen. I am using echo.c file as base and have modified to make create client and server. I am trying it on linux. 

but tcp_connect
 from client is never successful and i don't even get the tcp_connect callback. I have tested the echo_client and echo_server independently by using simple Linux client and server application, but when i try to use the echo_server and echo_client against each other , it doesn't work.  I am not sure about the issue whether it's because of same ethernet adapter some other issue. I hope someone will help me.

Thanks & Regards,
Chandra
 Shekhar





The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
_______________________________________________ lwip-users mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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