Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: executing an PHP file on the webserver Pin
mikone10-Oct-06 6:51
mikone10-Oct-06 6:51 
GeneralRe: executing a PHP file on the webserver Pin
asamay10-Oct-06 7:00
asamay10-Oct-06 7:00 
GeneralRe: executing a PHP file on the webserver Pin
mikone10-Oct-06 7:59
mikone10-Oct-06 7:59 
GeneralRe: executing a PHP file on the webserver Pin
asamay10-Oct-06 8:28
asamay10-Oct-06 8:28 
QuestionDataColumn and DataTable Pin
123456uio10-Oct-06 6:25
123456uio10-Oct-06 6:25 
AnswerRe: DataColumn and DataTable Pin
Ioan Anton10-Oct-06 8:19
Ioan Anton10-Oct-06 8:19 
AnswerRe: DataColumn and DataTable Pin
Private_Void10-Oct-06 8:24
Private_Void10-Oct-06 8:24 
Questioncrystal reports with c#.net Pin
Raheelchohan10-Oct-06 5:26
Raheelchohan10-Oct-06 5:26 
QuestionMy good stuff to share... Pin
ahyeek10-Oct-06 5:11
ahyeek10-Oct-06 5:11 
QuestionHow fast is a bubble sort? Pin
Anthony Mushrow10-Oct-06 4:59
professionalAnthony Mushrow10-Oct-06 4:59 
AnswerRe: How fast is a bubble sort? Pin
J4amieC10-Oct-06 5:11
J4amieC10-Oct-06 5:11 
GeneralRe: How fast is a bubble sort? Pin
Anthony Mushrow10-Oct-06 5:56
professionalAnthony Mushrow10-Oct-06 5:56 
AnswerRe: How fast is a bubble sort? Pin
Ashish Derhgawen10-Oct-06 5:57
Ashish Derhgawen10-Oct-06 5:57 
GeneralRe: How fast is a bubble sort? Pin
Dan Neely10-Oct-06 6:03
Dan Neely10-Oct-06 6:03 
AnswerRe: How fast is a bubble sort? Pin
Daniel Grunwald10-Oct-06 7:49
Daniel Grunwald10-Oct-06 7:49 
AnswerRe: How fast is a bubble sort? Pin
Daniel Grunwald10-Oct-06 8:00
Daniel Grunwald10-Oct-06 8:00 
GeneralRe: How fast is a bubble sort? Pin
User 665810-Oct-06 8:57
User 665810-Oct-06 8:57 
GeneralRe: How fast is a bubble sort? Pin
Dan Neely10-Oct-06 9:39
Dan Neely10-Oct-06 9:39 
GeneralRe: How fast is a bubble sort? Pin
User 665811-Oct-06 3:35
User 665811-Oct-06 3:35 
QuestionCannot view data entry table in ReportViewer [modified] Pin
Ramith Sivanarain10-Oct-06 4:21
Ramith Sivanarain10-Oct-06 4:21 
Questionquestion about port scanning Pin
Green Fuze10-Oct-06 3:56
Green Fuze10-Oct-06 3:56 
AnswerRe: question about port scanning Pin
mikone10-Oct-06 4:43
mikone10-Oct-06 4:43 
Hi!

I'm not sure about this but you could try to do it like this:

<br />
System.Net.Sockets.TcpClient myclient = new System.Net.Sockets.TcpClient();<br />
for (int i = 0; i < 65535; i++)<br />
{<br />
   try<br />
   {<br />
     myclient.Connect("localhost", i);<br />
     // Client was able to connect, hence the specified port 'i' is open...<br />
   }<br />
   catch<br />
   {<br />
     // An Exception was thrown, hence there was a problem while connecting.. port 'i' closed?<br />
   }<br />
}<br />


This method is obviously not the best because it uses a try..catch statement and it will also throw an exception if a particular port is blocked by another application.
To get around this issue you will have to extend the exceptionhandling massively.

That's how i would do it but as already mentioned i'm pretty unexperienced...

Good luck,
mik
GeneralRe: question about port scanning Pin
Green Fuze12-Oct-06 14:28
Green Fuze12-Oct-06 14:28 
QuestionFilter a Record "Partial key search" Pin
aranhamarvel10-Oct-06 3:10
aranhamarvel10-Oct-06 3:10 
AnswerRe: Filter a Record "Partial key search" Pin
baerten10-Oct-06 4:33
baerten10-Oct-06 4:33 

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.