1 Reply Latest reply on Jun 24, 2015 3:30 PM by grga

    Need a non-blocking method of initiating TCP connection

    jasont

      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?