Example #1
0
        /// <summary>
        /// This method invokes the SubmitSm method asynchronously
        /// </summary>
        /// <param name="pdu">submit_sm PDU to send</param>
        /// <param name="callback">Asynch callback</param>
        /// <returns>IAsyncResult interface for monitoring</returns>
        public IAsyncResult BeginSubmitSm(submit_sm pdu, AsyncCallback callback)
        {
            AsynchCall acr = new AsynchCall(callback, this);

            return(acr.BeginInvoke(new SubmitSmDelegate(SubmitSm), new object[] { pdu }));
        }
Example #2
0
        /// <summary>
        /// This method invokes the EnquireLink method asynchronously
        /// </summary>
        /// <param name="pdu">enquire_link PDU to send</param>
        /// <param name="callback">Asynch callback</param>
        /// <returns>IAsyncResult interface for monitoring</returns>
        public IAsyncResult BeginEnquireLink(enquire_link pdu, AsyncCallback callback)
        {
            AsynchCall acr = new AsynchCall(callback, this);

            return(acr.BeginInvoke(new EnquireLinkDelegate(EnquireLink), new object[] { pdu }));
        }
Example #3
0
        /// <summary>
        /// This method invokes the BindTransceiver method asynchronously
        /// </summary>
        /// <param name="pdu">bind_transceiver PDU to send</param>
        /// <param name="callback">Asynch callback</param>
        /// <returns>IAsyncResult interface for monitoring</returns>
        public IAsyncResult BeginBindTransceiver(bind_transceiver pdu, AsyncCallback callback)
        {
            AsynchCall acr = new AsynchCall(callback, this);

            return(acr.BeginInvoke(new BindTransceiverDelegate(BindTransceiver), new object[] { pdu }));
        }
Example #4
0
        /// <summary>
        /// This method invokes the DeliverSm method asynchronously
        /// </summary>
        /// <param name="pdu">deliver_sm PDU to send</param>
        /// <param name="ac">Asynch callback</param>
        /// <returns>IAsyncResult interface for monitoring</returns>
        public IAsyncResult BeginDeliverSm(deliver_sm pdu, AsyncCallback ac)
        {
            AsynchCall acr = new AsynchCall(ac, this);

            return(acr.BeginInvoke(new DeliverSmDelegate(DeliverSm), new object[] { pdu }));
        }
Example #5
0
        /// <summary>
        /// This method invokes the SendData method asynchronously
        /// </summary>
        /// <param name="pdu">data_sm PDU to send</param>
        /// <param name="ac">Asynch callback</param>
        /// <returns>IAsyncResult interface for monitoring</returns>
        public IAsyncResult BeginSendData(data_sm pdu, AsyncCallback ac)
        {
            AsynchCall acr = new AsynchCall(ac, this);

            return(acr.BeginInvoke(new SendDataDelegate(SendData), new object[] { pdu }));
        }
Example #6
0
        /// <summary>
        /// This method is used to enquire the session asynchronously.
        /// </summary>
        /// <returns></returns>
        public IAsyncResult BeginEnquireLink(AsyncCallback ac)
        {
            AsynchCall acr = new AsynchCall(ac, this);

            return(acr.BeginInvoke(new EnquireLinkDelegate(EnquireLink), null));
        }
Example #7
0
        /// <summary>
        /// This method is used to unbind from the session asynchronously.
        /// </summary>
        /// <returns></returns>
        public IAsyncResult BeginUnBind(AsyncCallback ac)
        {
            AsynchCall acr = new AsynchCall(ac, this);

            return(acr.BeginInvoke(new UnbindDelegate(UnBind), null));
        }