Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by ph0enix (Friar)
on Feb 03, 2003 at 12:28 UTC ( #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?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2023-05-31 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?