mIRC has quite a bit of behind-the-scenes stuff going on with many of its "interfaces"; this includes sockets. There's state tracking variables and the like. For example the 16k write buffer. If you were to append data directly to the socket descripter chances are $sock().sq would not correctly align with whats actually in the buffer.

As far as SendMessage is concerned, you do realize the file descripter isn't an actual file, correct? There's no HDD read/writes; its an in-memory interface.

Why avoid SendMessage? Afterall, its one of Microsoft's recommended native methods for inter-program communications.

Last edited by FroggieDaFrog; 15/12/17 05:06 PM.

I am SReject
My Stuff