Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
typedef void (*NETsocketCallback)(int SocketId);
void NETsetSocketWriteCallback(NETloopHandle LoopHane, NETsocketCallback pCallback);
void NETsetSocketReadCallback(NETloopHandle LoopHane, NETsocketCallback pCallback);
void NETsetSocketErrorCallback(NETloopHandle LoopHane, NETsocketCallback pCallback);
// NETpoll stays like this:
void NETpoll(NETloopHandle* pLoopHandle, int TimeoutInMilliseconds);

Advantage of this model is possibly being more compatible with how IOCP works? Questions remain about how errors and socket closing would work in this model.

...