Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: class vs structs in C# Pin
BobInNJ14-Nov-09 12:33
BobInNJ14-Nov-09 12:33 
GeneralRe: class vs structs in C# Pin
N a v a n e e t h14-Nov-09 17:32
N a v a n e e t h14-Nov-09 17:32 
AnswerRe: class vs structs in C# Pin
Richard MacCutchan14-Nov-09 6:55
mveRichard MacCutchan14-Nov-09 6:55 
AnswerRe: class vs structs in C# Pin
PIEBALDconsult14-Nov-09 8:52
mvePIEBALDconsult14-Nov-09 8:52 
GeneralRe: class vs structs in C# Pin
BobInNJ14-Nov-09 11:44
BobInNJ14-Nov-09 11:44 
GeneralRe: class vs structs in C# Pin
PIEBALDconsult15-Nov-09 3:51
mvePIEBALDconsult15-Nov-09 3:51 
Questionfind IP-Adress of external hardware (XPort) connected via Ethernet Pin
A_Wolf14-Nov-09 4:30
A_Wolf14-Nov-09 4:30 
AnswerRe: find IP-Adress of external hardware (XPort) connected via Ethernet Pin
Dave Kreskowiak14-Nov-09 11:13
mveDave Kreskowiak14-Nov-09 11:13 
You don't connect to Ethernet via DHCP. Ethernet is just a cabling and signalling specification. DHCP assigns IP Addresses via TCP/IP.

How you do this depends on the device. Normally, something like this would be done by one of three methods. Again, this what you do depends ENTIRELY on the devices discovery capabilities. So, you've going to have to contact the manufacturer of it or read the documentation on it or both.

1) The device may advertise its existance somehow. Usually, this is done by the device broadcasting a crafted SAP (Service Advertising Protocol) packet or some other custom packet for similar functionality, at some time interval. Your software would be listening on the networks broadcast address for these packets and interpreting the data inside to ID the device and its IP Address.

2) Your software might have to broadcast a crafted "ping" or "hello?" packet that the device listens for and, if/when it hears it, it will respond with some kind of "I'm here!" packet that your software has to listen for.

3) You have to scan the network by pinging or sending some kind of crafted packet to each IP address in the subnet or some other IP range. NO, JUST PINGING 1 TO 255 DOES NOT COVER THE ENTIRE RANGE OF THE SUBNET YOUR MACHINE IS ON! It takes considerabily more math than just assuming your on a non-subnetted class C network and ping that little range.

Does C# or the .NET Framework offer some easy method to do this for you?? No.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




QuestionHow to implement BarCode Reader in Customer inventry system using C#.net??? Pin
Arslan Khan14-Nov-09 3:05
Arslan Khan14-Nov-09 3:05 
AnswerRe: How to implement BarCode Reader in Customer inventry system using C#.net??? Pin
OriginalGriff14-Nov-09 4:47
mveOriginalGriff14-Nov-09 4:47 
GeneralRe: How to implement BarCode Reader in Customer inventry system using C#.net??? Pin
Arslan Khan14-Nov-09 5:20
Arslan Khan14-Nov-09 5:20 
GeneralRe: How to implement BarCode Reader in Customer inventry system using C#.net??? Pin
OriginalGriff14-Nov-09 5:34
mveOriginalGriff14-Nov-09 5:34 
GeneralRe: How to implement BarCode Reader in Customer inventry system using C#.net??? Pin
The Man from U.N.C.L.E.14-Nov-09 5:40
The Man from U.N.C.L.E.14-Nov-09 5:40 
AnswerRe: How to implement BarCode Reader in Customer inventry system using C#.net??? Pin
Jacob Lee16-Nov-14 15:13
Jacob Lee16-Nov-14 15:13 
Questionget the Event log Identity Pin
Jassim Rahma14-Nov-09 3:00
Jassim Rahma14-Nov-09 3:00 
AnswerRe: get the Event log Identity Pin
The Man from U.N.C.L.E.14-Nov-09 5:56
The Man from U.N.C.L.E.14-Nov-09 5:56 
QuestionTaskDialog without a button! Pin
Jassim Rahma14-Nov-09 2:58
Jassim Rahma14-Nov-09 2:58 
AnswerRe: TaskDialog without a button! Pin
The Man from U.N.C.L.E.14-Nov-09 3:55
The Man from U.N.C.L.E.14-Nov-09 3:55 
QuestionCreate a discussion forum using C# Pin
alan20090914-Nov-09 2:56
alan20090914-Nov-09 2:56 
AnswerRe: Create a discussion forum using C# Pin
The Man from U.N.C.L.E.14-Nov-09 3:47
The Man from U.N.C.L.E.14-Nov-09 3:47 
GeneralRe: Create a discussion forum using C# Pin
OriginalGriff14-Nov-09 5:50
mveOriginalGriff14-Nov-09 5:50 
QuestionTaskDialog problem Pin
Jassim Rahma14-Nov-09 2:53
Jassim Rahma14-Nov-09 2:53 
AnswerRe: TaskDialog problem Pin
Luc Pattyn14-Nov-09 2:58
sitebuilderLuc Pattyn14-Nov-09 2:58 
GeneralRe: TaskDialog problem Pin
Jassim Rahma14-Nov-09 3:02
Jassim Rahma14-Nov-09 3:02 
GeneralRe: TaskDialog problem Pin
Dave Kreskowiak14-Nov-09 11:01
mveDave Kreskowiak14-Nov-09 11:01 

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.