Question: what is c2s and s2s?
Answer: c2s is a client to server connection and this is just a standard XMPP protocol. s2s is server to server connection and there are a few protocols/extensions to RFC which describe how 2 XMPP servers can communicate with each other.