Alot of changes.
This commit is contained in:
1 parent
f894f3fb66
commit
9c0ea8e559
43 files changed
+697
-79
No files matched your search
+4
-6
@@ -44,18 +44,16 @@ namespace core {
|
||||
//
|
||||
}
|
||||
|
||||
int UDPServerSocket::processCommand(Session *session) {
|
||||
int UDPServerSocket::processCommand(std::string request, std::stringstream &data) {
|
||||
|
||||
std::stringstream out;
|
||||
int sequence = 0;
|
||||
|
||||
for(auto *session : sessions) {
|
||||
out << "|" << ++sequence;
|
||||
session->output(session);
|
||||
out << "|" << std::endl;
|
||||
data << "|" << ++sequence;
|
||||
session->output(data);
|
||||
data << "|" << std::endl;
|
||||
}
|
||||
|
||||
session->write(out.str());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user