Never mind I found the solution to my problem, I was supposed to have:
StateConstants.sckListening
instead of just sckListening

But also, while trying to fix the problem myself I have discovered there is an inbuilt socket class at system.net.sockets but before I found this out I have been using the MSWinsockLib.dll which some people are saying is just for VB6

so could anyone tell me which is better/which I should be using?