µTasker Forum

µTasker Forum => µTasker general => Topic started by: neil on April 16, 2014, 06:41:06 PM

Title: single tcp callback
Post by: neil on April 16, 2014, 06:41:06 PM
Hi Mark,
  Is it possible to have a single tcp call back for multiple sockets (when using the fnGetTCP_Socket(..) command)? I have 10 sockets, but and would like to use just the 1 callback routine. Within the call back I go through the list of active sockets checking the socket number, so I can identify which one is being serviced.

   
Thanks
Neil
Title: Re: single tcp callback
Post by: mark on April 16, 2014, 07:00:29 PM
Hi Neil

Check the HTTP call back since it works like this. [fnHTTPListener() is enetered for each socket and then assigns the connection to a 'session']

Regards

Mark