public class yourclass
{
   private object s
   public void yourmethod()
  {
     Socket s = listener.AcceptSocket();
    Thread clientservice = new Thread(new ThreadStart( ServiceClient);
   }
    ..........
    private static  void ServiceClient(  )
    {
       s .... 
    }}