question about a asio example

Hi, inthe example of a chat server usin asio library, http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/chat/chat_s... there is a fuction socket() , that socket_ value the function returns i use to each new connection with the server right? so if i have n users , i'll have n opened sockets?? i'll aprecciate to get me clear on this thanks tcp::socket& socket() { return socket_; } -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

pedro chaparro wrote:
Hi, inthe example of a chat server usin asio library,
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/chat/chat_s...
there is a fuction socket() , that socket_ value the function returns i use to each new connection with the server right? so if i have n users , i'll have n opened sockets??
Right. Regards, Rutger
participants (2)
-
pedro chaparro
-
Rutger ter Borg