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

Re: Client Server Communication. How to accept data sent by the server?

by btrott (Parson)
on Apr 05, 2000 at 22:20 UTC ( [id://6957]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print $server "FOO request\n";
    
    my $response = <$server>;
    # or my $bytes_read = read($server, $response, 4192);
    # or whatever--basically, just read from the server
    
  2. or download this
    my $client = $server->accept;
    my $request = <$client>;
    ...
    # generate a response
    print $client $response;
    close $client;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://6957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found