Send() 공개 메소드

public Send ( byte buffer ) : void
buffer byte
리턴 void
예제 #1
0
 private void Thread()
 {
     try {
         NetworkStream ns      = _client.GetStream();
         SecureSession session = new SecureSession(ns, _securityParameters);
         session.PerformServerHandshake(null);
         if (session.Receive() != null)
         {
             session.Send(Encoding.UTF8.GetBytes(RESPONSE));
         }
         session.Close();
         Console.WriteLine("Finish reader thread");
     } catch (Exception) {}
 }