Sending strings between two computers via ethernet

A while ago I asked a question about using RS-232 communication with Java.  It seems as though I need to abandon that route because it no longer fits the desired system requirements.  Thanks to Nem for his advice on that one.

 

Now what I need to be able to do is send and receive strings between two computers connected via a network hub.  The computers in use would not be connected to the outside world and would only be communicating with each other at this point.

 

I need to be able to send a string like "auto" terminated with a carriage return when a button on a GUI is pressed by the user.  The GUI would then need to get back a string like "ok" or "err" also followed by a carriage return.

 

I am sure that I am making this much harder than I need to, so if anyone can help out it would appreciated.  For some reason I am having a lot of trouble absorbing how to use Java, so any help or explanations need to be in beginner terms.

 

Thanks.

Views: 2045

Reply to This

Replies to This Discussion

Thanks, I will check those out.

 

Thanks again for the help.

Reply to Discussion

RSS

Happy 10th year, JCertif!

Notes

Welcome to Codetown!

Codetown is a social network. It's got blogs, forums, groups, personal pages and more! You might think of Codetown as a funky camper van with lots of compartments for your stuff and a great multimedia system, too! Best of all, Codetown has room for all of your friends.

When you create a profile for yourself you get a personal page automatically. That's where you can be creative and do your own thing. People who want to get to know you will click on your name or picture and…
Continue

Created by Michael Levin Dec 18, 2008 at 6:56pm. Last updated by Michael Levin May 4, 2018.

Looking for Jobs or Staff?

Check out the Codetown Jobs group.

 

Enjoy the site? Support Codetown with your donation.



InfoQ Reading List

Vercel Releases JSON-Render: A Generative UI Framework for AI-Driven Interface Composition

Vercel has open-sourced json-render, a framework that enables AI models to create structured user interfaces from natural language prompts. Released under the Apache 2.0 license, it supports multiple frontend frameworks and features a catalog of components defined by developers. Community feedback includes both support and skepticism, highlighting its differences from existing standards.

By Daniel Curtis

Green IT: How to Reduce the Impact of AI on the Environment

AI poses major challenges for green IT: each query consumes vast energy, GPU chips last only 2-3 years, and costs stay hidden from users. Regulatory frameworks like the EU AI Act fall short on enforcement, Ludi Akue said. In her talk What I Wish I Knew When I Started with Green IT she presented model compression, quantization, and novel architectures, using sustainability as a design constraint.

By Ben Linders

AWS S3 Introduces Account-Regional Namespaces, Ending 18 Years of Global Bucket Name Collisions

AWS introduced account-regional namespaces for S3, fixing global bucket name collisions that broke IaC automation for 18 years. New format: {prefix}-{account-id}-{region}-an. CloudFormation gets the BucketNamePrefix property, and IAM gets the s3:x-amz-bucket-namespace condition key. Prevents confused-deputy attacks by making names unpredictable when there is no account ID.

By Steef-Jan Wiggers

Presentation: Open Source, Community, and Consequence: The Story of MongoDB

Andrew Davidson and Akshat Vig discuss the journey of disrupting the transactional database market. They explain why the document model became the "Buckminster Fuller" moment for modern apps and share lessons on scaling from "web-scale" memes to mission-critical workloads. Leaders will learn about operational excellence, monetizing convenience over control, and navigating the open-source race.

By Akshat Vig, Andrew Davidson

Article: Architectural Governance at AI Speed

In the GenAI era, code is a commodity, but alignment is not. Traditional review boards can't scale with AI-generated output. This article explores "Declarative Architecture" - transforming ADRs and Event Models into automated guardrails. Move beyond "dumping left" to a model where the conformant path is the path of least resistance, enabling decentralized governance without losing cohesion.

By Kyle Howard, Christian Johansen, Dana Katzenelson, Brian Rhoten, Warren Gray

© 2026   Created by Michael Levin.   Powered by

Badges  |  Report an Issue  |  Terms of Service