Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: My server doesnt get all the data sent by the client application

by Rad (Novice)
on May 14, 2013 at 13:57 UTC ( #1033468=note: print w/ replies, xml ) Need Help??


in reply to Re^3: My server doesnt get all the data sent by the client application
in thread My server doesnt get all the data sent by the client application

I got the problem solved, but i dont quite understand why I need to do that. I had to recv data twice to get the 1st and 2nd buffer.

..... while(my $new_sock = $sock->accept()) { $|=1; $new_sock->recv($text1, 600); $new_sock->recv($text2, 800); } ....
Does anyone know when we need to do this? Thanks!


Comment on Re^4: My server doesnt get all the data sent by the client application
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-11-26 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (170 votes), past polls