Windows Sockets within XOP

Hello,

I was experimenting with the possibility of an Igor XOP that ran a Windows socket server to interact with Igor from an external client. I was testing this out and ran into trouble preventing the Igor process from freezing when the server is performing blocking Winsock calls such as accepting clients. I've tried doing this in a separate thread to prevent any blocking to no avail. 

Is it possible to create a winsock server within an Igor XOP that doesn't freeze the process? And if not, is there any way for an external application to asynchronously call an Igor procedure or XOP?