Author Topic: single tcp callback  (Read 5819 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
single tcp callback
« 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

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: single tcp callback
« Reply #1 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