Thread: Sockets
View Single Post
  #9 (permalink)  
Old 05-23-2008, 11:45 PM
Zosden's Avatar
Zosden Zosden is offline
Senior Member
 
Join Date: Apr 2008
Posts: 386
Zosden is on a distinguished road
What if I made a "Socket" class that had two constructors. The class would have a Socket and a ServerSocket in it. Depending on which constructor I called it would set up the correct one. That way I could have a vector of "Sockets" that in the end where all the same thing. The last Socket in the Vector would be the socket listening in for a new connection. Would this work like I would like or what are your thoughts.
__________________
My IP address is 127.0.0.1
Reply With Quote