how to reset tcp server in Chipkit wf32 DNETck?

Status
Not open for further replies.

dharanikumarsrvn

Junior Member level 1
Joined
Oct 22, 2012
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,401
Hi,
My chipkit wf32 board act as a tcp server and android smartphone act as tcp client. In wf32 i used DNETck library and in android i am using Socket package. my server will send data at regular intervals. Client will not send any data to server, it just receives. In server, i am calling isconnected(&DNETck::status) regularly to check the status of the connection. When i close the app, isconnected() fails, if i check isstatusanerror(&DNETck::status), it returns true. In that scenario what should i do, 1. close just the tcpclient and start listening, 2. close tcpclient and tcpserver and starts from binding the server to port, 3. close tcpclient, close tcpserver and start from DNetck::begin()? Please clarify me.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…