Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Net::Server::Multiplex - serving binary data?

by ph0enix (Friar)
on Feb 03, 2003 at 12:28 UTC ( [id://232201]=perlquestion: print w/replies, xml ) Need Help??

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

Hi all,
I'm writing server and need to send binary data to clients. As base class Net::Server::Multiplex is used. It is easy to serve text (all data witten to STDOUT are send to client and data written to STDERR are send to server log) but I want to send binary data. Simple binmode STDOUT; does not work because the tied interface used and IO::Multiplex::Handle does not implement method "BINMODE".

Suggestions? Example code?

Replies are listed 'Best First'.
Re: Net::Server::Multiplex - serving binary data?
by zengargoyle (Deacon) on Feb 03, 2003 at 14:21 UTC

    are you sure you need it? i've always thought that sockets were immune from the MS binmode wierdness.

Re: Net::Server::Multiplex - serving binary data?
by Three (Pilgrim) on Feb 03, 2003 at 14:23 UTC

    Why not go old school and UU Encodeing of binary to text.

    Here is the results of a search on cpan for uu encodeing.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://232201]
Approved by Corion
Front-paged by bart
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-06-24 20:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.