mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Use kcp as QoS module
This commit is contained in:
@@ -22,13 +22,16 @@ int main(int argc, char** argv) {
|
||||
|
||||
std::string msg = "Hello world";
|
||||
|
||||
int i = 100;
|
||||
while (i--) {
|
||||
getchar();
|
||||
std::cout << "Send msg: " << msg << std::endl;
|
||||
SendData(peer, msg.data(), msg.size());
|
||||
// int i = 100;
|
||||
// while (i--) {
|
||||
// getchar();
|
||||
// std::cout << "Send msg: " << msg << std::endl;
|
||||
// SendData(peer, DATA_TYPE::USER, msg.data(), msg.size());
|
||||
// }
|
||||
|
||||
// getchar();
|
||||
while (1) {
|
||||
}
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user