Hello Kenny
I am using PPP for the connection.
Where do I get the definition / structure for
tcp_listen(&commsSock,80,0,0,NULL,0);
I looked in TCP.LIB and tried to use that structure but I get an error
message:
I do already have
tcp_reserveport(80);
I get the following error messages when I add tcp_listen
line 577 : ERROR HUMIDITYPPP.C : Expecting function or variable name.
line 577 : WARNING HUMIDITYPPP.C : Wrong type for parameter 1.
line 577 : ERROR HUMIDITYPPP.C : Invalid expression - need lvalue.
regards
A.
Kenny Millar wrote:
>
>
> You will already have done something like this...
> tcp_reserveport(PORT);
> tcp_listen(&commsSock,PORT,0,0,NULL,0);
>
> So now you must periodically call
> tcp_tick(&commsSock);
>
> And then when:
> sock_established(&commsSock) == true
> you know your client has connected.
>
> You know the client has disconnected when:
> tcp_tick(&commsSock)==0
>
> Hope this helps.
> Kenny.
>
> -----Original Message-----
> From: rabbit-semi@yahoogroups.com
> <mailto:rabbit-semi%40yahoogroups.com>
> [mailto:rabbit-semi@yahoogroups.com
> <mailto:rabbit-semi%40yahoogroups.com>] On
> Behalf Of Alexis
> Sent: 13 July 2009 11:43
> To: rabbit-semi@yahoogroups.com <mailto:rabbit-semi%40yahoogroups.com>
> Subject: [rabbit-semi] Ethernet connection
>
> How does one tell when a client has connected to the Ethernet or PPP
> port of the Rabbit?
>
> Regards
>
> A.
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>