Where I work, we need a protocol capable of:
It will be implemented in java. Therefore, I have some questions since I have never run the network protocol before.
I have a pretty good background in Java and C ++, but not yet with sockets / network programming.
thank
, SIP ( , XML , < 3k-) XMPP.
/ , / , XMPP, , . , Jingle XMPP RTP. XML- XMPP ( XML), XMPP .
, ( , , ). , , , , . XMPP . OpenFire , Java.
Google Protocol Buffers, , Java. , , Java NIO ByteBuffer s.
ByteBuffer
, , , , , Message, TAG CONTENT. CONTENT JSON, / json.
, json Message. TAG, , CONTENT , .
, TAG == "", CONTENT . TAG == "", , , json-, , , /s ..
. , , , :)
, , , . , WaitingForLogin. , , . , , .
http https. java media rtp.
. XMPP.
If you want to write your own protocol, start by exploring an RPC form, such as JSON or similar, that will make your life a lot easier.