Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcp server: how to send message to all the connected client at every time interval

6 views
Skip to first unread message

ganesh....@gmail.com

unread,
Feb 25, 2010, 1:48:57 AM2/25/10
to
Hi,
I want to come up with a server which will send some message like
"goodbye" or something else to all the connected client at every 10
sec interval. Could somebody plz help me how to send message to all
the connected client at every 10 sec interval.

Thanks,
Ganesh

Nick Keighley

unread,
Feb 25, 2010, 4:15:23 AM2/25/10
to
On 25 Feb, 06:48, "ganesh.kunda...@gmail.com"
<ganesh.kunda...@gmail.com> wrote:

you probably want to ask this on a platform specific group. A Unix
group is probably ok for general socket stuff.

Ian Collins

unread,
Feb 25, 2010, 4:17:56 AM2/25/10
to

The OP already has.

--
Ian Collins

Abubacker

unread,
Feb 26, 2010, 1:25:42 AM2/26/10
to
On Feb 25, 11:48 am, "ganesh.kunda...@gmail.com"

Need to make some changes after implementing a single client and
server connection establishment
, after that use select function and maintain a fd set of all the
connected client ,
I hope that if you are thorough in the select function then it'll
solve all your requirement,

Nick Keighley

unread,
Feb 26, 2010, 3:54:17 AM2/26/10
to

well it wasn't obvious from looking at his post

_JusSx_

unread,
Feb 28, 2010, 1:00:43 PM2/28/10
to

Hi,
I'm too lazy to explain here and now how to do what you asked. So I
suggest to read this http://beej.us/guide/bgnet/. I have learned a lot
about socket programming.

-JusSx-

--
Linux is only free if your time has no value

0 new messages