std::string s = "simple_string";
auto mainHub = funny::network::TCPSocketHub::create();
mainHub->setRawPolicy(true);
mainHub->retain();
auto socket = mainHub->createSocket("your ip here", 6869, 11);
auto packet = new funny::network::Packet();
packet->initWithRawBuf(s.c_str(), s.length(), -1);
socket->sendPacket(packet);
packet->release();
-
Notifications
You must be signed in to change notification settings - Fork 3
License
quannv108/TCPSocket
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published