ult) . "<br>";
} else{
echo "connect OK.<br>";
}
}
}
function sendmsg($msg){
socket_write($this->socket,$msg,strlen($msg));
$result = socket_read($this->socket,100);
$this->response = $result;
if($this->debug == 1){
printf("<font color=#CCCCCC>%s $msg</fon><br>",$this->sendflag);
printf("<font color=blue>%s $result</font><br>",$this->recvflag);
}
return $result;
}
function close(){
socket_close($this->socket);
}
} else{
echo "connect OK.<br>";
}
}
}
function sendmsg($msg){
socket_write($this->socket,$msg,strlen($msg));
$result = socket_read($this->socket,100);
$this->response = $result;
if($this->debug == 1){
printf("<font color=#CCCCCC>%s $msg</fon><br>",$this->sendflag);
printf("<font color=blue>%s $result</font><br>",$this->recvflag);
}
return $result;
}
function close(){
socket_close($this->socket);
}
}
| 对此文章发表了评论 |
