I have just started using ejabberd as a messaging server. Now I have read that TCP connections follow the handshaking method for setting up the connection, and I was wondering that how ejabberd follows the handshaking method whenever any client say Pidgin client sends a connection request.
It's probably a very basic question but after giving in much efforts in trying to find it, I haven't got much success.
Can anyone please explain it to me.
ejabberd handles "handshaking" (that is stream/STARTTLS/SASL negotiation) exactly as described in RFC6120. This is implemented in xmpp_stream_in module.