Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Networking Protocols

  1. #1
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Networking Protocols

    I understand different networking applications use different protocols, I was wondering if different protocols have different syntax a person needs to learn and if so is this syntax independent of any specific programming language?

    I want to learn more about networking alongside continue learning Java, I've been through the oracle networking tutorial and not sure what else I can do.


  2. #2
    Junior Member
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    19
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Networking Protocols

    In theory you would need to learn the way the protocol is designed but it's not some kind of a programming language but more a design of how a stream of bytes is transmitted. For example:
    1. Byte MessageType
    2-3. Byte MessageId
    4-8. Byte MessageLength
    8-... Byte PlayerName

    The way the bytes are send in a bytestream are the so called "Protocol". Most protocols are defined in RFCs (Request for comments) which are freely available but there are a lot of closed source protocols used by different applications / companies.

  3. The Following User Says Thank You to noctarius For This Useful Post:

    keepStriving (June 16th, 2013)

  4. #3
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Networking Protocols

    Thank you, I suppose it has as much to do with Java or any other language as a router or any other independent subject. I've learnt to use networking in small program's like a chat client & server with UDP and TCP, and used robot class.
    What other projects and subjects do you think I should check out as I seek to learn more in networking besides doing bigger projects with what I already know.
    Networking is very interesting.

  5. #4
    Junior Member
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    19
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Networking Protocols

    Well that's a good question. Depends on what you want to do. You could do some simple Games like Pong for 2 Players on different PCs but that is not only networking but some "game programing" too. On the other side you could try to send a few simple objects around by either using ObjectOutput/InputStream (the easy but heavy overhead way) or using interfaces like Externalizable where you have to write / read the bytestream yourself. At last there are frameworks out there to easy the step of lightweight / fast the bytestream by sourcecode / bytecode generation using a special structure syntax like Google Protobuf, Apache Thrift, Apache Avro.

    If you need more information on one or other topics feel free to ask

  6. The Following User Says Thank You to noctarius For This Useful Post:

    keepStriving (June 17th, 2013)

  7. #5
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Networking Protocols

    I'm going to either try peer to peer file sharing, a card game or look into IRC. I want to try something new hence the choices. Thank you for your help.

  8. #6
    Junior Member
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    19
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Networking Protocols

    Good luck

Similar Threads

  1. Networking a game
    By bigtan in forum Java Networking
    Replies: 3
    Last Post: April 30th, 2012, 12:46 PM
  2. Networking asignment
    By Ralbeyd in forum Totally Off Topic
    Replies: 1
    Last Post: February 1st, 2012, 06:28 AM
  3. Mina networking
    By imsuperman05 in forum Java Networking
    Replies: 5
    Last Post: December 24th, 2011, 01:01 PM
  4. Networking Java
    By aneel in forum JDBC and Database Tutorials
    Replies: 1
    Last Post: December 13th, 2011, 03:28 AM
  5. Game Networking
    By Parsnips in forum Java Networking
    Replies: 15
    Last Post: December 1st, 2011, 02:57 PM