I got BDS 2006, with the Indy 10 component package.

I am trying to use this to make my game, but i cant figure out how to make a function that automatically takes incomming data and runs packet-prosessing function.

I tried using a unending loop and using the idAntiFreeze component, but it didnt work (it froze anyway )

I then tried using the antifreeze when i wouldnt get any responce (to test if it worked, silly) and it didnt.

Does anyone have a solution for this? i know many ppl use the indy components, so somebody must have some smart way of handling this?