Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with autoflush?

Status
Not open for further replies.

tabaar

Programmer
Joined
Jun 12, 2001
Messages
34
Location
US
I have socket server in VC++, and client in Perl. The data sent from client to server isn't flushing properly:

use IO::Socket::INET;
$sock = IO::Socket::INET->new(PeerAddr => 'localhost:9999');
$sock->autoflush(1);
send ($sock, "1", 0);
send ($sock, "2", 0);
send ($sock, "3", 0);

There isn't OnReceive with 1, OnReceive with 2, etc., but OnReceive with "123" in my server :( ...

What's wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top