[[!comment format=mdwn username="https://www.google.com/accounts/o8/id?id=AItOawmctq-5pm0gmzv3H9bPhvgE1c0cQumgly4" nickname="Saikrishna" subject="Please provide source code :)" date="2014-07-09T10:44:02Z" content=""" Please provide the source code the for the below question. Message Details There are totally 7 messages - Syntax/Structure is as below. 1. LOGIN 2. NEEDAUTH - randomly generated 3. AUTH 4. LOGINOK - no value sent. O byte length 5. ERROR - can be 0 byte length or contain an error string 6. GETFILE 7. DATA - x bytes indicating size + x bytes of data Note: x can be 0. which means empty file! A Sample Messaging C - Client; S - Server C: LOGIN rajesh S: NEEDAUTH aa1123 C: AUTH S: LOGINOK C: GETFILE detail.txt S: ERROR \"No Such file\" C: GETFILE details.txt S: DATA 100 \"some data ... of 100 bytes\" Client closes the connection after receiving the DATA and stores the data received into a file. """]]