Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

05 client.php写错了! #14

Open
wanminny opened this issue Apr 1, 2016 · 0 comments
Open

05 client.php写错了! #14

wanminny opened this issue Apr 1, 2016 · 0 comments

Comments

@wanminny
Copy link

wanminny commented Apr 1, 2016

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant