Results 1 to 2 of 2

Thread: How to create socket over PPP connection and NOT over ethernet

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Beans
    6

    How to create socket over PPP connection and NOT over ethernet

    Greetings,

    I have a system where there are two active physical network connections: Ethernet (eth0) and PPP over a USB serial device. I want to create a socket using the PPP connection. How do I "ignore" the ethernet device and only use the ttyUSBx device for the socket connection. C/C++ application using Eclipse as the dev environment. Thanks much in advance.

    Regards,
    Ray.

  2. #2
    Join Date
    Jun 2012
    Beans
    6

    Re: How to create socket over PPP connection and NOT over ethernet

    Found the answer to this. After creating the socket have to bind the raw socket to an interface using setsockopt() and then call bind() to bind to an address.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •