PDA

View Full Version : [Qt Network]The problem about bind TCP socket



wolfguolei
15th October 2012, 07:46
Hi there,
I don't know if I express it correctly,I hope I could choose the specific net adapter to send TCP messages.

I am doing a project related to SCADA,witch means my application send & receives messages in certain protocol from different server.I google it on the internet and found most thread talking about it is how to build a TCP server,which everybody says no need to bind. but now I need to write a application running as a TCP client.The network adapter should be selected before a TCP layer has been built.And the message should only be sent by the network adapter which I selected.

I recive a lot of helps by friends from this forum,and I finally got my adapter list through QNetworkInterface(:-D ),but what I can do to bind my socket to a network adapter(such as <Broadcom NetXtreme Gigabit Ethernet Driver> or <DW1501 Wireless-N WLAN Half-Mini a>)..?

Please help.