View Single Post
Old Jan 24th, 2006, 2:15 PM   #8
weeb0
Newbie
 
Join Date: Jan 2006
Posts: 17
Rep Power: 0 weeb0 is on a distinguished road
I understand the basic idea behind the OO. But, what I don't understand well, is how I can wrap the socket in my project.

For the serial connections, it's fairly easy since I don't receive any information from the serial port, so I don't need any callback or anything like this.

but for the serial, I must wait for a connection. Ok, I can use the class_socket::accept(). The function will return the socket.

But, how I can know a client has sended me information ? I have to build a callback ? I have to poll ? This is what I don't understand. In my C project, I use the select(....) in an infinite loop to know when I receive some information ... but, using a class, I have to gain experience to understand well that... Anyone can help me ? thank you.
weeb0 is offline   Reply With Quote