The Elite Noob has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl monks :)

Now. I would like to create a client and server chatting system using IO::Socket. The system is for a small closed network of about 30 computers all running Windows XP. They are networked using a switch. The IP's are dynamic, so we can't keep a lock on any IP per computer.

Now i want to do a chatting system like, so the server is always hosted on a certain user's account. Then the client finds the IP address of that user and connects to that. The server should be able to connect at one time 30 separate people using TCP. Then when a client sends a message to a server, it should have a timestamp. Then the server sends the message out to all of the clients in the correct order. The clients are to then display the message. It should be really effective way and really easy to implement

I have no idea where to start and help is appreciated. Thanks again for the theory and any examples :)

  • Comment on Creating a messenger system using sockets and tcp protocol.

Replies are listed 'Best First'.
Re: Creating a messenger system using sockets and tcp protocol.
by atcroft (Abbot) on Mar 23, 2011 at 02:44 UTC

    My first suggestions are:perlipc and copies of both the Perl Cookbook and Programming Perl.

    The following thoughts apply *ONLY* on a closed, isolated network. (Otherwise, you need to be able to specify a host as the server, unless you are wanting to do a completely distributed system, which is beyond what I am considering at the moment.) They are not necessarily the best of ideas, just what came to mind as I read your posting.

Re: Creating a messenger system using sockets and tcp protocol.
by trwww (Priest) on Mar 23, 2011 at 04:53 UTC
      but the idea is to do it myself :)
Re: Creating a messenger system using sockets and tcp protocol.
by zentara (Cardinal) on Mar 23, 2011 at 13:49 UTC
Re: Creating a messenger system using sockets and tcp protocol.
by Anonymous Monk on Mar 23, 2011 at 00:52 UTC
    for not knowing where to start, that plan is awfully specific ; hahaha, sounds like homework ... Broadcast address
      Actually, I don't have Comp Sci at school. This is a personal project. Making this for me, my friends and my home network. Mostly to learn socket programming and protocols.