• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

How to send messages over ethernet?

I have a number of DOS PC's on an ethernet network talking to an NT server.  The software on the DOS PC's is developed in Clipper 5.2.  How do I send messages from my DOS PC to the NT Server and vice-versa?  I don't want to write to the Server HDD as the DOS PC would have to be constantly reading across the network to check for messages.
0
akb
Asked:
akb
  • 5
  • 4
  • 2
  • +1
1 Solution
 
mikecrCommented:
If you have the Microsoft client loaded on the Dos machines to have them connect you should be able to use the Net Send command. Type Net Send /? and it will give you the parameters of the command.

Mike
0
 
akbAuthor Commented:
Thank you for your comment, mikecr.   My need is for the application software to send messages, not the user.  The messages are for the software on the PC's to interpret, not for the user to read.
0
 
mikecrCommented:
Sorry, my mistake.
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
patrickpeetersCommented:
I found a program called NetMail which is free and downloadable from cnet.
The location is :
www.geocities.com/siliconvalley/lakes/2382/nmdos212.zip
if this doesn't work go to www.cnet.com
go to downloads PC internet email Netmail
0
 
akbAuthor Commented:
Thank you patrickpeeters for you reply.  I don't want to send emails, I want to be able to send messages between programs running on two different machines.  I don't want the messages going to the hard disk.  The messages aren't to be viewed by humans.  The messages are to give the program on the other computer instructions to perform certain tasks.  The other computer must respond to these instructions immediately.
0
 
patrickpeetersCommented:
Did you already tried to use the Windows NT and DOS command :
 NET SEND <computer to where the message must go> <Message text>

This is a dos command so normally it should run. I didn't test it yet.
0
 
akbAuthor Commented:
Yes I have tried that.  I don't want to send text messages!
The messages are for the software on the PC's to interpret, not for the user to read.
0
 
mitrakisCommented:
I'd suggest to use TCP/IP sockets to communicate with your software on NT<->DOS machine.

You'll have to implement socket listeners in both apps, so each app will wait for a message of the other.
The incoming message will be translated by your listener (you have to define a kind of a function table) and do it's job.

I wrote a remote control for Sony cameras to control them over internet.
The server app listens on socket 6543. If the client sends "moveleft" my server will translate this command internally to the appropriate hex command which then will be sent to the camera over RS232-C.

Since socket programming is a standard, it should be possible under Clipper, too (maybe syntax differs...but sure it's possible).

Assuming you have programming knowledge (at least in Clipper), I'd suggest to have a look at the following site; just to understand how sockets communicate (sample is in Java):
http://members.tripod.com/~palathuruthil/javclsocket.htm

Sockets are the most simple thing to establish bidirectional communication based on the TCP/IP protocol.
You've mentioned NT, so all you need is to install the TCP/IP package on your DOS machine (if it's not already present).

Best regards
-Stavi-
0
 
akbAuthor Commented:
Thanks mitrakis.  Sounds like I'm getting closer, but I really do need specifics on how to get my clipper program working with sockets.  Any help would be greatly appreciated.  I've plenty more points for a good answer.
0
 
mitrakisCommented:
Unfortunately, I've never worked with Clipper, so I won't be that helpful in solving this with Clipper.

To be honest, in my opinion this answer covered the Q...in case you need detailed help in coding the sockets under Clipper you may ask this with a new Q in the programming area.

Anyway, it's on you to grade this answer or to reject it.

Best regards
-Stavi-
0
 
mitrakisCommented:
I found the following page which has a link to Winsock in relation with Clipper.
It may be helpful; check it out.

http://www.underflap.com/clipper/
0
 
akbAuthor Commented:
mitrakis,
I'll gladly award you the points.  Thanks for your help.  I'll repost question about Clipper elsewhere.
0
 
mitrakisCommented:
Thanks a lot akb.

Have a nice day
-Stavi-
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now