Exemplo n.º 1
0
        /// <summary>
        /// Create the callback class for receiving notification of change to MTU
        /// </summary>
        /// <returns>Instance of a class implementing IMtuCallback</returns>
        private MtuRequestCallBack CreateMtuRequestCallBack()
        {
            MtuRequestCallBack mtuRequest = new MtuRequestCallBack();

            mtuRequest.DeviceMtuEvent += MtuRequest_DeviceMtuEvent;

            return(mtuRequest);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Request and enqueue MTU for the current connection
 /// </summary>
 /// <param name="iMtu">Required MTU</param>
 /// <param name="iMtuRequestCallBack">Request call back</param>
 public void MakeMtuRequest(int iMtu, MtuRequestCallBack iMtuRequestCallBack)
 {
     // Enqueue an MTU request
     RequestMtu(iMtu).With(iMtuRequestCallBack).Fail(iMtuRequestCallBack).Enqueue();
 }