in reply to Re: Chat room with socket programming question
in thread Chat room with socket programming question

Yes! I was trying to write the feature I wanted but failed. I tested your code.. works perfect, but like you said, it does not have the feature of accepting and rejecting clients.
I will work more on it and update this post if I find a way to do it.
Thank you..
  • Comment on Re^2: Chat room with socket programming question

Replies are listed 'Best First'.
Re^3: Chat room with socket programming question
by Perl_New_Monk (Initiate) on Nov 30, 2016 at 21:24 UTC
    The code you have posted works, but it can only serve one client. I tried connecting a second client but it did not work. I have Windows 7 64 bits and perl 5.22

      Correct. I said it doesn't support that as written. To accept multiple clients, you'll need to add in IO::Select - which I left as your exercise ... your current code has IO::Select in it - should be easy to merge the two.