TCPserver without OnExecute event

后端 未结 5 1072
情歌与酒
情歌与酒 2021-01-06 04:20

I want to make a TCPserver and send/receive message to clients as needed, not OnExecute event of the TCPserver.

Send/receive message is not a probl

5条回答
  •  长情又很酷
    2021-01-06 04:47

    Use OnExecute and if you have nothing to do, Sleep() for a period of time, say 10 milliseconds. Each connection has its own OnExecute handler so this will only affect each individual connection.

提交回复
热议问题