Hi, all! Maybe it's a little offtopic, but...
I have 2 progs, 1st is a socket-server, written in VC++6.0 using CSocket with default initialization. The 2nd is a Perl script, wich is called by this program. Script connects to the server in such way:
use Socket;
$host="localhost";
$port="1906";
socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
connect(SOCK, sockaddr_in($port, inet_aton($host)));
$| = 1;
But $| doesn't work! All data sent from script to server is buffered and the server receives it ALL when the script is finishes working. What's wrong (maybe it's VC's CSocket error)?
Great Thanx!
I have 2 progs, 1st is a socket-server, written in VC++6.0 using CSocket with default initialization. The 2nd is a Perl script, wich is called by this program. Script connects to the server in such way:
use Socket;
$host="localhost";
$port="1906";
socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
connect(SOCK, sockaddr_in($port, inet_aton($host)));
$| = 1;
But $| doesn't work! All data sent from script to server is buffered and the server receives it ALL when the script is finishes working. What's wrong (maybe it's VC's CSocket error)?
Great Thanx!