Right what I needed. Thank you.

PS: I have done some modifications to this: I mean, I keep track of all the connections into an array of "oneConnections", and made the class to extend Thread, so...