473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

simple java sender/listener program

I'm doing C++ and Computer Networking courses and having a hard enough time but have to write a short java program to test a batch file we had to create.

What I want to do for now is just make a server that listens to connections
through a port, and accepts it's connections from the client. In other words, I need to creat a primitive messaging service to test on my computer via DOS.

I don't know much about java...if anyone has some code I could use I'd appreciate it. Thanks in advance.
Oct 11 '06 #1
1 2942
r035198x
13,262 8TB
I'm doing C++ and Computer Networking courses and having a hard enough time but have to write a short java program to test a batch file we had to create.

What I want to do for now is just make a server that listens to connections
through a port, and accepts it's connections from the client. In other words, I need to creat a primitive messaging service to test on my computer via DOS.

I don't know much about java...if anyone has some code I could use I'd appreciate it. Thanks in advance.
look at java.net package and then see what you can write out of it. We will always be here to assist when you need help
Oct 11 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Robert | last post by:
How would a java messaging system look if message exchange and formats, and actions are as described above. the sender and listener in Java, and the coordinator in C. all three processes must...
1
by: jm | last post by:
Easy probably, please read on. I know some of you have commented already about some of my socket question. I appreciate that. I have a Form1: static void Main() { Application.Run(new...
4
by: genc_ ymeri at hotmail dot com | last post by:
Hi, How can I translate this method in C# ? public void actionPerformed (ActionEvent event) { if even.getSource() == mybtn { sayHello(); }
2
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
1
by: klubbhead | last post by:
This part of my program needs to read from 4 parameter files and then displays them on the screen by clicking a different radio button. The program itself works, but my professor says that I have to...
15
oll3i
by: oll3i | last post by:
why it highlights new Integer(value), new Integer(newValue)); as an error import java.beans.*; import java.io.Serializable; i
0
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
1
Ganesh9u
by: Ganesh9u | last post by:
Hi All, import org.sf.feeling.swt.win32.extension.hook.Hook; import org.sf.feeling.swt.win32.extension.hook.data.HookData; import org.sf.feeling.swt.win32.extension.hook.data.MouseHookData; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.