Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
GeneralRe: new window refreshing Pin
Pete O'Hanlon1-Apr-08 2:07
mvePete O'Hanlon1-Apr-08 2:07 
GeneralRe: new window refreshing Pin
varun.g1-Apr-08 5:02
varun.g1-Apr-08 5:02 
GeneralDoubt in Object. Equals() method Pin
Darmi1-Apr-08 1:38
Darmi1-Apr-08 1:38 
GeneralRe: Doubt in Object. Equals() method Pin
C1AllenS1-Apr-08 2:32
C1AllenS1-Apr-08 2:32 
GeneralRe: Doubt in Object. Equals() method Pin
carbon_golem1-Apr-08 2:43
carbon_golem1-Apr-08 2:43 
GeneralRe: Doubt in Object. Equals() method Pin
Darmi1-Apr-08 17:14
Darmi1-Apr-08 17:14 
GeneralRe: Doubt in Object. Equals() method Pin
Guffa1-Apr-08 2:48
Guffa1-Apr-08 2:48 
Generalnetwork, C#, Interface, IOControl Pin
pedefetoll1-Apr-08 1:37
pedefetoll1-Apr-08 1:37 
Hello,

I have, on a PC, two Network Adapters.
I need to test the quality of these interfaces, with a cross link.
I have written a small program in C# with a client socket and a server socket.
But I want to be sure that exchange is going on the cable, and NOT inside the network layers of the PC.
So I want to bind the client socket and the server socket each to one of the interfaces.

The function I want to use is in the following code :

Socket xPortSend;
//...
byte[] AdapterId = ????
int iRet = xPortSend.IOControl( IOControlCode.BindToInterface, AdapterId, null );

1) I don't know how to find the Adapter Id of each network interface ?
2) Which is the exact synthax to use with the function "IOControl" ?

Some samples on this call will be very helpfull ?

Best regards.
GeneralPc Pin
ellllllllie1-Apr-08 1:01
ellllllllie1-Apr-08 1:01 
GeneralRe: Pc Pin
Spunky Coder1-Apr-08 1:29
Spunky Coder1-Apr-08 1:29 
GeneralRe: Pc Pin
Pete O'Hanlon1-Apr-08 2:11
mvePete O'Hanlon1-Apr-08 2:11 
GeneralAppend a property to existing control Pin
dan!sh 1-Apr-08 0:00
professional dan!sh 1-Apr-08 0:00 
GeneralRe: Append a property to existing control Pin
J4amieC1-Apr-08 0:05
J4amieC1-Apr-08 0:05 
GeneralRe: Append a property to existing control Pin
dan!sh 1-Apr-08 0:21
professional dan!sh 1-Apr-08 0:21 
GeneralRe: Append a property to existing control Pin
stancrm1-Apr-08 0:23
stancrm1-Apr-08 0:23 
GeneralRe: Append a property to existing control Pin
dan!sh 1-Apr-08 0:33
professional dan!sh 1-Apr-08 0:33 
GeneralRe: Append a property to existing control Pin
stancrm1-Apr-08 0:36
stancrm1-Apr-08 0:36 
GeneralRe: Append a property to existing control Pin
dan!sh 1-Apr-08 0:40
professional dan!sh 1-Apr-08 0:40 
GeneralRe: Append a property to existing control Pin
stancrm1-Apr-08 0:44
stancrm1-Apr-08 0:44 
GeneralRe: Append a property to existing control Pin
dan!sh 1-Apr-08 1:13
professional dan!sh 1-Apr-08 1:13 
GeneralIntercepting calls to ServicedComponent Pin
Roger Alsing31-Mar-08 23:57
Roger Alsing31-Mar-08 23:57 
Generalwrinting a query Pin
Hum Dum31-Mar-08 23:57
Hum Dum31-Mar-08 23:57 
GeneralRe: wrinting a query Pin
dan!sh 1-Apr-08 0:08
professional dan!sh 1-Apr-08 0:08 
GeneralRe: wrinting a query Pin
Hum Dum1-Apr-08 0:38
Hum Dum1-Apr-08 0:38 
GeneralRe: wrinting a query Pin
Eduard Keilholz1-Apr-08 0:35
Eduard Keilholz1-Apr-08 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.