Improve: Reduce mouse operation lag during remote control

This commit is contained in:
yuanyuanxiang
2026-01-02 12:12:35 +01:00
parent e86afe74da
commit b555b3a535
3 changed files with 11 additions and 1 deletions

View File

@@ -693,6 +693,10 @@ public:
{
GroupName = group;
}
void SetNoDelay(BOOL bNoDelay = TRUE)
{
setsockopt(sClientSocket, IPPROTO_TCP, TCP_NODELAY, (char*)&bNoDelay, sizeof(BOOL));
}
} CONTEXT_OBJECT, * PCONTEXT_OBJECT;
typedef CList<PCONTEXT_OBJECT> ContextObjectList;