Galvatron has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I'm very new to perl. I've been using Flash and XML and been trying to code a socket server to make a little chat room from flash and XML. The problem is that xml tags are accepted in the perl script that I got, but I don't know what to do to output the XML tags back to the client (which is Flash on an XML socket connection) What functions do I use? I've loaded the IO::Socket and IO::Select modules and have set the parameters to tcp, port 1234, listen etc. The two perl books I have don't tell you how to out put data. If anyone can tell me, they would be of great help. Thanks
  • Comment on How to output from socket connections, please help

Replies are listed 'Best First'.
Re: How to use perl sockets?
by busunsl (Vicar) on Jan 17, 2002 at 18:47 UTC
    Go to Super Search and search for 'socket' in text.

    You will find lots of nodes that will give you the information you need.

Re: How to output from socket connections, please help
by Anonymous Monk on Jan 17, 2002 at 19:12 UTC
Re: How to output from socket connections, please help
by alien_life_form (Pilgrim) on Jan 17, 2002 at 19:22 UTC
    Greetings,

    Perlipc,as advise above, is good reading.

    Also, one of your Perl books should be the perl cookbok from O'Reilly (the Ram). Check out chapter 17.

    Other bibliography (gleaned from the Ram book):

    The socket , bind , connect , and gethostbyname functions in Chapter 3 of Programming Perl and in perlfunc (1);
    the documentation for the standard Socket, IO::Socket, and Net::hostent modules; the section on "Internet TCP Clients and Servers" in Chapter 6 of Programming Perl and in perlipc (1);
    Unix Network Programming , by W. Richard Stevens, published by Prentice Hall (1992);

    Finally, part of the solution to your problem is called "print"....:-).


    Cheers,
    alf


    You can't have everything: where would you put it?
Re: How to output from socket connections, please help
by agoth (Chaplain) on Jan 18, 2002 at 14:44 UTC
    Another book recommendation which I've found invaluable and isn't mentioned above:

    Network Programming with Perl. Lincoln D. Stein.

Re: How to use perl sockets?
by rdfield (Priest) on Jan 17, 2002 at 17:43 UTC