Tips for developing / implementing your own protocol

Where I work, we need a protocol capable of:

  • Login / Logout
  • Send / Receive Instructions
  • Send / receive files
  • Send / restore audio stream (can use RTP)
  • Send / Receive Small XML Files Use
  • cryptography for everyone.

It will be implemented in java. Therefore, I have some questions since I have never run the network protocol before.

  • Can existing protocols be used to create this?
  • What tool can I use to help me develop a protocol? for "Modeling"
  • Can all this be done by doing it alone? I have as much time as I need for this.

I have a pretty good background in Java and C ++, but not yet with sockets / network programming.

thank

+5
5

, SIP ( , XML , < 3k-) XMPP.

/ , / , XMPP, , . , Jingle XMPP RTP. XML- XMPP ( XML), XMPP .

, ( , , ). , , , , . XMPP . OpenFire , Java.

+2

Google Protocol Buffers, , Java. , , Java NIO ByteBuffer s.

+3

, , , , , Message, TAG CONTENT. CONTENT JSON, / json.

, json Message. TAG, , CONTENT , .

, TAG == "", CONTENT . TAG == "", , , json-, , , /s ..

. , , , :)

, , , . , WaitingForLogin. , , . , , .

+1

http https. java media rtp.

0

. 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.

0
source

All Articles