Ethernet Communications

This is a discussion on Ethernet Communications within the C++ Programming forums, part of the General Programming Boards category; Hi there! Ran into a problem again. Can you please give me an idea how to send out a simple ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    105

    Ethernet Communications

    Hi there!

    Ran into a problem again.

    Can you please give me an idea how to send out a simple 8-bit long message (or whatever) through the Ethernet (LAN)?
    Is there a component like the serial communications components?

    I'm using Borland C++ Builder 5.0.

    Any ideas are welcome!

    Thanx!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Look for some tutorials on Winsock

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    105
    I'm checking it right now, but my problem is that I don't want to use an Internet connection.

    I have to use the LAN (802.3) for data communication between a PC and a data reading/transferring device (in effect a scanner reader terminal). So I won't use Internet TCP/IP if possible.

    I don't know yet what kind of addressing will that device use, so I'll need something more universal than TCP/IP comms.

    However thanks for the tip, maybe I can work something out of it anyway.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    You dont need an internet connection.

    Just an IP address of another pc on the LAN. Send the data on a specific port to that pc via a socket, have a server on the recieveing pc to read the data and do something with it.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    105
    I won't be communicating with PCs I'll be communicating with automatic terminals. I'll have to check if I can emulate a client-like environment in those terminals.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    Well a first step is a good long read of the manuals for the equipment you want to talk to.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    105
    The first step will be to plan them

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to Write a Program in C to detect the Ethernet Cable?
    By christyyim in forum C Programming
    Replies: 1
    Last Post: 03-11-2009, 04:12 AM
  2. Reading from the Ethernet card.
    By guillermoh in forum C Programming
    Replies: 2
    Last Post: 02-07-2008, 05:41 PM
  3. ethernet
    By arian in forum Networking/Device Communication
    Replies: 8
    Last Post: 04-09-2005, 04:09 AM
  4. Ethernet To Ethernet
    By tyler4588 in forum Tech Board
    Replies: 6
    Last Post: 07-29-2003, 07:35 AM
  5. Programming for USB communications
    By minesweeper in forum Windows Programming
    Replies: 2
    Last Post: 11-05-2002, 05:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21