mIRC Home    About    Download    Register    News    Help

Print Thread
#128700 28/08/05 04:48 PM
Joined: Oct 2004
Posts: 38
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Oct 2004
Posts: 38
I has met with such problem:
I have socket, the send buffer contains some data ($sock ($sockname).sq > 0)
It is necessary keeping socket open and not waiting for data to be sent - clear the buffer.
Is it possible?

#128701 28/08/05 10:16 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
If I understand you correctly you want to ignore all data in the receive buffer?

If you NEVER need any data received, just don't script a on sockread event for that socket.

Or just return from the event without doing any /sockread -> mIRC will think there's no handler and clear the buffer. If you already read some data, just return, let it retrigger the event and then return without /sockreading.

Another way is /sockread &a and then just do nothing with it.


Link Copied to Clipboard