Re: require "sys/socket.ph";



Gayatri wrote:
Dear All,

Hello,

 I am facing one problem if any body knows the solution please let me know.



file name : ch.pl..

use Socket;

require "sys/socket.ph"; # for &TCP_NODELAY
^^^^^^^^^^^^^^^^^^^^^^^^^^

Remove that line and it should work (TCP_NODELAY is included in the Socket module.)

socket (SERVER,  AF_INET, SOCK_STREAM,0); setsockopt(SERVER, SOL_SOCKET,
&TCP_NODELAY, 1)

or die "Couldn't disable Nagle's algorithm: $!\n";


John
--
use Perl;
program
fulfillment
.



Relevant Pages