473,395 Members | 1,956 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,395 software developers and data experts.

Help requested - Application to use an IP interface

Folks,

I am writing an application that interfaces with a machine that has both
serial and IP communications.
The application sends and receives text strings.
I have written it using the serial interface, because I have easy access to
it, but when it is used for real, it needs to send and receive the same
strings to an IP address. I have never done this kind of programming before
(the IP interface).

Given the IP address of the machine (and possibly the address of a gateway
to it), can anybody give me any pointers of where to find what I need, and
if somebody could give me a short and simple working example, it would be
like a preview of the next world (Heaven, I hope!)

Typically, I will send strings like
sendLog


.... and write the returned log intom a buffer.

Thanks (with bated breath)

Mike.
Jun 23 '06 #1
6 1197
MikeC (in 0m******************@newsfe3-gui.ntli.net) said:

| I am writing an application that interfaces with a machine that has
| both serial and IP communications.
| The application sends and receives text strings.
| I have written it using the serial interface, because I have easy
| access to it, but when it is used for real, it needs to send and
| receive the same strings to an IP address. I have never done this
| kind of programming before (the IP interface).
|
| Given the IP address of the machine (and possibly the address of a
| gateway to it), can anybody give me any pointers of where to find
| what I need, and if somebody could give me a short and simple
| working example, it would be like a preview of the next world
| (Heaven, I hope!)

Your programming life is about to become _very_ much more
interesting - you're taking a big step foreward.

CLC isn't the place for discussing networking; and without knowing
anything about the environment it's difficult to help - but I'll
mention in passing that W. Richard Stevens wrote a number of
(unix-oriented) books that you might find helpful in about any
operating environment. A google search on his name will provide
titles.

If you're working "close to the machine" (my normal mode), then you
might also find "Fast Ethernet" by Quinn and Russel informative.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
Jun 23 '06 #2
"MikeC" wrote:
I am writing an application that interfaces with a machine that has both
serial and IP communications.
The application sends and receives text strings.
... it needs to send and receive the same
strings to an IP address. I have never done this kind of programming before
(the IP interface).

Given the IP address of the machine (and possibly the address of a gateway
to it), can anybody give me any pointers of where to find what I need, and
if somebody could give me a short and simple working example...


<OT>
1st) This is a good (and small) book to get you started:
"Pocket Guide to TCP/IP Sockets" (C Version) ISBN 1558606866

2nd) Inspect the source code for common network utilities, such as
telnet, rsh, rcp, etc. (Skip anything related to authentication and
cryptography, at least for now.)

3rd) Web search for "socket tutorials", etc.

4th) Standard advice: post again in a newsgroup or mailing list
dedicated to the platform/OS/environment etc. you are using for this
project, and/or to network programming. (comp.protocols.tcp-ip,
comp.os.???)
</OT>
Jun 23 '06 #3
Many thanks to both who responded. I'll order the books and see where we go
from there.

Best Regards,

MikeC

"MikeC" <my.address@end_of.post> wrote in message
news:0m******************@newsfe3-gui.ntli.net...
Folks,

I am writing an application that interfaces with a machine that has both
serial and IP communications.
The application sends and receives text strings.
I have written it using the serial interface, because I have easy access to it, but when it is used for real, it needs to send and receive the same
strings to an IP address. I have never done this kind of programming before (the IP interface).

Given the IP address of the machine (and possibly the address of a gateway
to it), can anybody give me any pointers of where to find what I need, and
if somebody could give me a short and simple working example, it would be
like a preview of the next world (Heaven, I hope!)

Typically, I will send strings like
sendLog


... and write the returned log intom a buffer.

Thanks (with bated breath)

Mike.

Jun 24 '06 #4
Folks,

I already replied. I don't know why it didn't get posted.

Just a note to say thanks to my two respondants, and to ask where I can
examine the source code for "common network utilities, such as
telnet, rsh, rcp, etc.", as suggested by Roberto Waltman.

Thanks and Regards,

Mike.
Jun 28 '06 #5
MikeC (in Qh******************@newsfe2-win.ntli.net) said:

| Just a note to say thanks to my two respondants, and to ask where I
| can examine the source code for "common network utilities, such as
| telnet, rsh, rcp, etc.", as suggested by Roberto Waltman.

A full Linux distribution (I think) includes sources of the modules
for which you're looking - you can download or buy a CD. Prepare to
spend a _lot_ of time reading. I'm not sure, but think sources may
also accompany BSD distributions.

If you can't find 'em or lack resources, e-mail me and I'll send one
of my ancient Linux CDs.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
Jun 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here....
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
14
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I...
6
by: cj | last post by:
Lets just take this example I'm looking at now. I'm looking at the help screen titled .NET Framework Class Library FolderBrowserDialog Class . It gives an example at the bottom that begins with:...
0
by: Shane | last post by:
Does anyone have any advise on how I can fix the error message shown below? Thanks in advance for any ideas, Shane Server Error in '/' Application....
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
2
by: Anantha | last post by:
Dear All, One day our Windows 2000 Server OS crashed, so our NT admin has re-installed the OS on C: drive. Fortunately we kept our database file and installation in F: drive. When we...
4
by: Rafael Tejera | last post by:
I'm moving some code from my old pc. I'm using VS NET 2003 C# and MSSQL 2003. Everything is in place, but I'm receiving this error messages. thansk for you help... Here is the error...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.