Hi,

I'm creating a c++ class for to easily handle multiple connections with sockets. I'd like to work with some kind of events (I'm a vb programmer ) . My class will use a do loop to check for new connections / new messages (non blocking server). Can I possibly pass a pointer to a function from with the actual code to my class. And then call the sub from within my class.

What I'm trying to say is. I want to call a sub in the code where my class is used. But I don't know wich sub yet. So the user has to tell me (with a function possibly) wich function to call when a new connection is made for example.

Thanks,

Walter Brebels