Beginner Problem for Defining threads
Hello Everybody:
I have a problem defining threads.
Thread td = new Thread(new ThreadStart(ReadSocket));
public void ReadSocket(System.Net.Sockets.Socket soct)
{
}
The error message I am getting is
Method 'SocketServer.Form1.ReadSocket(System.Net.Sockets.Socket)' does not match delegate 'void System.Threading.ThreadStart()'
How do I rectify the problem . I have to pass (System.Net.Sockets.Socket soct) in the public void ReadSocket() subroutine and start a new thread.
Pls guide.
Thanks,
Kapil