Watch this Author's files
I compiled pnet.c with the Matlab 2011a mex compiler using the visual studio 10 c++ compiler on Windows 7 / 64-bit using the command:
"mex pnet.c ws2_32.lib"
Seems to work fine so far. I also changed line 64 from