implementing a protocol in programming language
i want to know how you can you implement a protocol in any programming language.  
For ex-if i want to implement FTP protocol, how do i implement it using any programming language from scratch.
implementing a protocol in programming language
===

i want to know how you can you implement a protocol in any programming language.  
For ex-if i want to implement FTP protocol, how do i implement it using any programming language from scratch.