Your code above won't work because ParameterizedThreadStart takes only delegates with object parameters.
Envoyé par zaki
Also you don't need the ParameterizedThreadStart any more, the Thread itself takes delegates.
Try it and let us know.
public void receiver(object sc)
Socket c = sc as Socket;
if(c != null)
//do some work
private void button1_Click(object sender, EventArgs e)
Socket client = main_sock.accept();
Thread t = new Thread(receiver);