WinSock

I'd like to create a console program for a LAN chat. I'm using Winsock and am also using Jonnie's tutorial (below).

http://johnnie.jerrata.com/winsocktutorial/

Will Jonnie's code for a GUI work with a console window with a little modification?
closed account (G309216C)
It is easy to make his code work on a GUI application easily:

1. Create a function possibly a DWORD and put the network stuff there. Make sure it is position independent.

2. Then use CreateThread() to call the postion independent function.This way it will turn into a Thread rather than a functions so the EIP will continue to move on to the next Binary while the thread is executing as well due to windows construction . So the GUI will be working very fast and responsive.

Last edited on
Topic archived. No new replies allowed.