CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Posts
    93

    Win/Unix Sockets, using a specific local adapter.

    Hi Guys,

    When it comes to binding, so i can listen for a connection, i understand how to set which network adapter i want to listen with, which is fine and dandy.

    My question is, where can i set which device i want to connect with?

    Basically, i've got two network adapters, one wired, one wireless. Both with different IP addresses.

    When i call connect(), i want to be able to say 'Connect to 192.168.1.10 using the Wired adapter', but i can't seem to find any documentation on how to do this?

    Really hope i'm just being silly, as there must be a way.

    Cheers guys,
    D
    OutputDebugString(...); Is your friend!
    http://www.spikedsoftware.co.uk

  2. #2
    Join Date
    May 2006
    Location
    Indonesia & Japan
    Posts
    399

    Re: Win/Unix Sockets, using a specific local adapter.

    In TCP/IP socket, you can't choose which device you want to connect.
    You just can choose which IP you want to connect.
    henky
    ----------------------------------
    [email protected] is not my email address anymore...
    Jangan Pernah Menyerah

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured