If you are attempting to code a client for a particular protocol, then you must know the protocol which is to be used. You clearly do not. Reading the ENTIRE RFC will give you a decent idea of how the protocol works.