|
From: Alexander H. <ba...@us...> - 2009-04-07 16:56:52
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/protocols In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24072/classes/phgslib/protocols Modified Files: prtcl_gsp.class.php prtcl_gsp2.class.php prtcl_q3.class.php Log Message: socket close Index: prtcl_q3.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_q3.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_q3.class.php 3 Apr 2009 11:07:29 -0000 1.4 --- prtcl_q3.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 107,112 **** fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); } - fclose($socket); if ($this->info_str) { --- 107,113 ---- fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); + + fclose($socket); } if ($this->info_str) { Index: prtcl_gsp2.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_gsp2.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_gsp2.class.php 6 Apr 2009 05:34:31 -0000 1.4 --- prtcl_gsp2.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 153,159 **** fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); } ! fclose($socket); ! if ($this->info_str) { // sort the infostring --- 153,160 ---- fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); + + fclose($socket); } ! if ($this->info_str) { // sort the infostring Index: prtcl_gsp.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_gsp.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_gsp.class.php 6 Apr 2009 14:38:34 -0000 1.4 --- prtcl_gsp.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 104,111 **** $socket = fsockopen('udp://'. $this->address, $this->queryport, $errno, $errstr, 30); ! if ($socket == FALSE) { ! echo "Error: $errno - $errstr<br>\n"; ! } ! else { $packets = array(); $final = 0; --- 104,108 ---- $socket = fsockopen('udp://'. $this->address, $this->queryport, $errno, $errstr, 30); ! if ($socket != FALSE) { $packets = array(); $final = 0; *************** *** 151,156 **** } } } - fclose($socket); if ($this->info_str) { --- 148,153 ---- } } + fclose($socket); } if ($this->info_str) { |