Exemple #1
0
 private void Initalize(ITransport transport, MessageTimeout timeout,
                        byte headerFlags)
 {
     m_transport   = transport;
     m_timeout     = timeout;
     m_headerFlags = headerFlags;
     m_writeLock   = new AutoResetEvent(true);
     m_reiceivedRequestDispatcher = null;
     m_messageSendTask            = new MessageSendTask(m_transport, this);
 }
Exemple #2
0
 /// <summary>
 /// allows to install a receiver when ready to process messages.
 /// </summary>
 /// <param name="serverThreadsMaxPerConnection">
 /// the maximum number of server threads used for processing requests on a multiplexed client connection.
 /// </param>
 /// <remarks>used for standalone server side and used for bidirectional communication.</remarks>
 internal void InstallReceiver(IGiopRequestMessageReceiver receiver, GiopConnectionDesc receiverConDesc,
                               int serverThreadsMaxPerConnection)
 {
     lock (this) {
         if (m_reiceivedRequestDispatcher == null)
         {
             m_reiceivedRequestDispatcher =
                 new GiopReceivedRequestMessageDispatcher(receiver, this, receiverConDesc,
                                                          serverThreadsMaxPerConnection);
         }
     }
 }
Exemple #3
0
 internal GiopServerConnection(GiopConnectionDesc conDesc,
                               GiopReceivedRequestMessageDispatcher msgDispatcher)
 {
     m_conDesc       = conDesc;
     m_msgDispatcher = msgDispatcher;
 }
 /// <summary>
 /// allows to install a receiver when ready to process messages.
 /// </summary>
 /// <param name="serverThreadsMaxPerConnection">
 /// the maximum number of server threads used for processing requests on a multiplexed client connection.
 /// </param>
 /// <remarks>used for standalone server side and used for bidirectional communication.</remarks>
 internal void InstallReceiver(IGiopRequestMessageReceiver receiver, GiopConnectionDesc receiverConDesc,
                               int serverThreadsMaxPerConnection) {
     lock(this) {
         if (m_reiceivedRequestDispatcher == null) {
             m_reiceivedRequestDispatcher =
                 new GiopReceivedRequestMessageDispatcher(receiver, this, receiverConDesc,
                                                          serverThreadsMaxPerConnection);
         }
     }
 }
 private void Initalize(ITransport transport, MessageTimeout timeout,
                        byte headerFlags) {
     m_transport = transport;
     m_timeout = timeout;
     m_headerFlags = headerFlags;
     m_writeLock = new AutoResetEvent(true);
     m_reiceivedRequestDispatcher = null;
     m_messageSendTask = new MessageSendTask(m_transport, this);
 }
 internal GiopServerConnection(GiopConnectionDesc conDesc,
                               GiopReceivedRequestMessageDispatcher msgDispatcher)
 {
     m_conDesc = conDesc;
     m_msgDispatcher = msgDispatcher;
 }