Thread: Need small guidance in my networking journey

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Need small guidance in my networking journey

    Hi everyone,
    I am completely new in the field of networking. I come here for your guidance. Here is my situation:

    There is a custom board(having serial and ethernet ports) and a GUI(developed in VC++). The user will feed the data through the GUI and it has to go the board either through the serial port or through the ethernet port depending on the user's choice.

    I am clueless about the Ethernet communication. There are several reference documents available for serial communication, but those on Ethernet are not satisfactory(or say...I am not able to understand much).

    Can anyone tell me how to go about this job? I can write a GUI which can transfer data over serial port. But how to transmit it over ethernet? What topics should I read? Do I have to do the transfer by TCP/IP and UDP(I saw that those are used for ethernet)?

    Is there a way to do this whole programming using windows API (VC++)?

    I know that it is my job to do the task, but can anyone tell me which way to go (or at least in what manner to think)? Thank you.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Beej's Guide to Network Programming

    Once you've established the connection (which is a bit more involved than for a serial line), it's pretty much the same (indeed, it would be the same if you were on Unix/Linux).

    You write bytes at one end, and bytes appear at the other end.
    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.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    USA! USA! USA!
    Posts
    19
    doesn't winsock solve alot of these problems?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Journey time prog 1 minute wrong
    By mike_g in forum C Programming
    Replies: 4
    Last Post: 10-12-2006, 03:41 AM
  2. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 02:05 AM
  3. yhatzee, small straight
    By uglyjack in forum C++ Programming
    Replies: 2
    Last Post: 06-13-2002, 03:09 AM
  4. Beyond MFC : COM || Networking
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 04-25-2002, 04:28 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM