-
Notifications
You must be signed in to change notification settings - Fork 720
05 client.php写错了! #14
Copy link
Copy link
Open
Description
wanminny
opened on Apr 1, 2016
Issue body actions
client = new swoole_client(SWOOLE_SOCK_TCP);
}
public function connect() {
if( !$this->client->connect("127.0.0.1", 9501 , 1) ) {
echo "Error: {$fp->errMsg}[{$fp->errCode}]\n";
}
$msg_normal = "This is a Msg";
$msg_eof = "This is a Msg\r\n";
$msg_length = pack("N" , strlen($msg_eof) ). $msg_eof;
$i = 0;
while( $i < 100 ) {
$this->client->send( $msg_length );
$i ++;
}
}
}
$client = new Client();
$client->connect();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels