home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,438 of 14,669   
   Barry Margolin to ganesh.kundapur@gmail.com   
   Re: tcp server: how to send message to a   
   25 Feb 10 21:40:12   
   
   f485c5be   
   From: barmar@alum.mit.edu   
      
   In article   
   <71d527bf-223b-459d-9c4b-94964e190b78@u5g2000prd.googlegroups.com>,   
    "ganesh.kundapur@gmail.com"  wrote:   
      
   > 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.   
      
   How you do this depends to a great extent on the overall design of your   
   server.  You'll need to use a timer to trigger every 10 seconds, when   
   this goes off it will have to tell your main server loop to send the   
   broadcast message.  When the main loop sees this flag, it can run a loop   
   that writes to all the client connections.   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca