Beispiel #1
0
 /// <summary>
 ///  When accepted client tries to make connection.
 /// </summary>
 /// <param name="pipe">the pipe</param>
 /// <param name="status">status of connect</param>
 /// <remarks>hen this function calls, it is right before making connection,
 /// so user can configure the pipe before the connection is actually made.	</remarks>
 public void OnNewConnection(IpcInterface pipe, IpcConnectStatus status)
 {
     if (status == IpcConnectStatus.SUCCESS)
     {
         if (!m_pipes.Contains(pipe))
         {
             m_pipes.Add(pipe);
         }
     }
     m_options.m_callBackObj.OnNewConnection(this, pipe, status);
 }
Beispiel #2
0
 /// <summary>
 ///  When accepted client tries to make connection.
 /// </summary>
 /// <param name="pipe">the pipe</param>
 /// <param name="status">status of connect</param>
 /// <remarks>hen this function calls, it is right before making connection,
 /// so user can configure the pipe before the connection is actually made.	</remarks>
 public void OnNewConnection(IpcInterface pipe, IpcConnectStatus status)
 {
     if (status == IpcConnectStatus.SUCCESS)
     {
         if (!m_pipes.Contains(pipe))
             m_pipes.Add(pipe);
     }
     m_options.m_callBackObj.OnNewConnection(this, pipe, status);
 }