CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
perl socket server problem

 



majid
New User

May 29, 2005, 7:14 AM

Post #1 of 1 (534 views)
perl socket server problem Can't Post

 
Hi,

i'm writing a socket server with perl , a part of code here :

------------
while(@r=$selectsock->can_read){
foreach(@r){
$var1 = '<action node1="a" node2="b">';

foreach $c($selectsock->handles){
# here is problem
$s = syswrite($c,$var1,2048);
# end prob
}
}
}


--------------------------------
i noticed in the syswrite it will not send the data after it receive it, so it will wait until next pc send data and it will empty its buffer (seems if i add another syswrite it will send data but not always)

can anyone help me solve this problem ?

Thanks
Majid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives