lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] PPP - TCP


From: Sylvain Rochet
Subject: Re: [lwip-users] PPP - TCP
Date: Thu, 21 Jan 2016 20:34:04 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Norberto,

On Thu, Jan 21, 2016 at 12:07:08PM -0200, Norberto R. de Goes Jr. wrote:
> Hi Sylvain, all rigth? I am here again...
> 
> Sorry, but the problem continues. Please but I have a suspicion. First I
> explain you the status.
> 
> 1) My setup is very simillar to your. I have two VM´s (Ubuntu) in a Win-7
> host. Serial
> using the "Host pipe" VirtualBox method.
> 
> 2) Today (jan/21/2016), I updated my lwip and lwip-contrib git-repos
> changing just the two files sent to you (lwipopts.h and simhost.c) in the
> ".../lwip-contrib/ports/unix/proj/unixsim" directory. Master branch.
> 
> 3) In the VM#1, I run the pppd (linux), passive mode. Just after, the
> "simhost" app is executed in VM#2.  The link ppp is established, with no
> problem. I think that validates the serial and PPP connections.
> 
> The problem is with TCP mode. Today I use also the netcat tool like you. No
> problem (example in client side:   echo "TEST" | nc 192.168.123.21 7).
> 
> I have a suspicion when the client opens and uses the same connection to
> exchange several echo messages different from "netcat" behavior. I think.
> Thus I picked up a echo-client int the internet (thank to Silver Moon).
> When I use this "original client" the problem happens after 3 or plus echo
> messages like in my implementation.
> 
> But when I use the "changed client" (open and close socket for each echo
> message/prompt), no problem, all works fine.
> 
> Please, could you test the two attached clients files in your setup (on
> pppd server host) ? Is there sense in my suspicion?
> 
> OBS:
>    > gcc echo_client_original.c -o echoClientOriginal
>    > gcc echo_client_changed.c -o echoClientChanged

Well, they both work for me :-)

# ./echo_client_original
Socket created
Connected

Enter message : test0
Server reply :
test0
Enter message : test1
Server reply :
test1
Enter message : test2
Server reply :
test2
Enter message : test3
Server reply :
test3
Enter message : test4
Server reply :
test4
Enter message : test5
Server reply :
test5
Enter message : test6
Server reply :
test6
Enter message : test7
Server reply :
test7
Enter message : test8
Server reply :
test8
Enter message : test9
Server reply :
test9


# ./echo_client_changed
Socket created
Connected

Enter message : test0
Server reply :
test0
Socket created
Connected

Enter message : test1
Server reply :
test1
Socket created
Connected

Enter message : test2
Server reply :
test2
Socket created
Connected

Enter message : test3
Server reply :
test3
Socket created
Connected

Enter message : test4
Server reply :
test4
Socket created
Connected

Enter message : test5
Server reply :
test5
Socket created
Connected

Enter message : test6
Server reply :
test6
Socket created
Connected

Enter message : test7
Server reply :
test7
Socket created
Connected

Enter message : test8
Server reply :
test8
Socket created
Connected

Enter message : test9
Server reply :
test9
Socket created
Connected




Sylvain

Attachment: signature.asc
Description: Digital signature


reply via email to

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