T
T
The_Nex2018-07-02 21:35:50
Java
The_Nex, 2018-07-02 21:35:50

Java Network Programming. Logic over the protocol or your own protocol?

I am developing network applications (almost always client-server architecture).
I am self-taught, so I know what I'm doing, but the theory is not enough.
Essence of the question: I moved from C # to Java and again wondered: Is it worth it (and how) to develop your own protocol (even modifying TCP \ IP) to achieve the goals, or is it better to build additional. logic over the protocol?
For example, in C#, I have a client-server core with logic on top of the protocol that ensures the safety of the connection itself (detection of a connection, disconnect, reconnect, guarantee of delivery of the entire message (taking into account packet defragmentation)), but all this could be inserted by modifying TCP \IP.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question