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 3 of 3

Thread: Need TCP help

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    20
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Need TCP help

    I am new to Java, but not new to programming, having been previously a Delphi, then C# developer.

    I need to write a utility that will send messages to, and receive messages from, another machine on the network via TCP.

    I will load the messages to send from a file, looping through the file a line at a time.

    If it makes a difference, I'm using Windows XP as my dev machine.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: Need TCP help

    Two ways I know to communicate over the internet: Sockets and Datagrams.
    No idea where or if TCP fits into these.

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

    Blackbird (July 3rd, 2011)

  4. #3
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Need TCP help

    Suggested reading:
    Lesson: All About Sockets (The Java™ Tutorials > Custom Networking)
    And yes, TCP fits into Sockets.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  5. The Following User Says Thank You to newbie For This Useful Post:

    Blackbird (July 3rd, 2011)