Help for this page

Select Code to Download


  1. or download this
    sub read_data {
        # accept data from the socket and put it on the queue
    ...
        shutdown $socket, 2;
        close $socket;
    }