Saturday, August 24, 2013

Elementary Data Link Protocols-An unrestricted simplex protocol

Elementary Data Link Protocols-An unrestricted simplex protocol

An unrestricted simplex protocol

In order to appreciate the step by step development of efficient and complex protocols such as SDLC, HDLC etc., we will begin with a simple but unrealistic protocol. In this protocol: Data are transmitted in one direction only The transmitting (Tx) and receiving (Rx) hosts are always ready Processing time can be ignored Infinite buffer space is available No errors occur; i.e. no damaged frames and no lost frames (perfect channel)  The protocol consists of two procedures, a sender and receiver as depicted below:


Sender()
{
        forever
        {
                from_host(buffer);
                S.info = buffer;
                sendf(S);
        }
}

Receiver()
{
        forever
        {
                wait(event);
                getf(R);
                to_host(R.info);
        }
}

Upload UIImage as base64 String

Upload UIImage as Base64 String (Upload UIImage as string) //Select Pic From Camera or Gallery       @objc func btnPro...