I wrote the sample client and server
program using TCP protocol
in Perl.
So I used send()
and recv()
function.
In that I tried to get the return value of recv()
function.
The sample code is,
my $return_value;
$return_value = recv($client_socket, $data, 50, 0);
print "return value is: $return_value\n";
When I execute my code, it doesn't print any value. For example:
return value is:
After that I read the below link, even though I didn't get any return value. return value of recv() function in perl
How could I solve this?
Thanks.