Need a non-blocking method of initiating TCP connection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

My application servers as the master on a rather busy data bus.  Other devices on the bus need to be polled often to keep everything running smoothly.  The only place I have run into a problem is with wiced_tcp_connect because it is a blocking call.  When my application needs to make an out going tcp connection, everything else including the bus routine stops running while either the tcp connection is made or times out.

Is there a way to initiate a tcp connection in a non-blocking fashion, then check again later to see if the connection has been made?

0 Likes
1 Reply
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

Hello,

Currently the SDK does not support this.  However, the next SDK will have a priority queue and this should be possible.  The next SDK will be available around August. 

0 Likes