Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help in Splitting a variable Pin
mfkr8-Feb-05 13:02
mfkr8-Feb-05 13:02 
GeneralRe: Help in Splitting a variable Pin
Scott Serl8-Feb-05 15:04
Scott Serl8-Feb-05 15:04 
GeneralRe: Help in Splitting a variable Pin
mfkr8-Feb-05 15:53
mfkr8-Feb-05 15:53 
GeneralRe: Help in Splitting a variable Pin
mfkr8-Feb-05 20:29
mfkr8-Feb-05 20:29 
GeneralRe: Help in Splitting a variable Pin
Stefan Troschuetz8-Feb-05 21:15
Stefan Troschuetz8-Feb-05 21:15 
Generalsending sms problem Pin
iramg7-Feb-05 19:37
iramg7-Feb-05 19:37 
GeneralTree View Control Expanding Problem Pin
joy_priyank7-Feb-05 18:21
joy_priyank7-Feb-05 18:21 
Questionwhat is the wrong??? Pin
students552 university7-Feb-05 18:16
students552 university7-Feb-05 18:16 
I have a big problem :

I'm also trying to control the port[open port , close port ,...] and i write the following code in C#:

Socket serialPort1 = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);

System.Net.IPAddress LocalIPAddress = System.Net.IPAddress.Parse("127.0.0.1");

System.Net.IPEndPoint LocalEndPoint = new System.Net.IPEndPoint( LocalIPAddress,80 );

serialPort1.Connect(LocalEndPoint);

serialPort1.Blocking = false;

serialPort1.Shutdown(SocketShutdown.Both);

serialPort1.Close();

I think after the program execute i cann't open any web page because the port (80) as the http and when i closed it i cann't open any web page .
but in fact after the program execute not happened any thing i can also open any web page ????!!!!!

what is the wrong in last code ????!!!
Please some one help me

thanks.
AnswerRe: what is the wrong??? Pin
S. Senthil Kumar7-Feb-05 18:20
S. Senthil Kumar7-Feb-05 18:20 
GeneralFinding the first empty row in an Excel sheet Pin
Flack7-Feb-05 17:24
Flack7-Feb-05 17:24 
GeneralRe: Finding the first empty row in an Excel sheet Pin
the last free name7-Feb-05 21:45
the last free name7-Feb-05 21:45 
GeneralRe: Finding the first empty row in an Excel sheet /*Edited*/ Pin
Stefan Troschuetz7-Feb-05 22:14
Stefan Troschuetz7-Feb-05 22:14 
GeneralBacking up files with Alternate Data Streams Pin
gxdata7-Feb-05 15:52
gxdata7-Feb-05 15:52 
GeneralUsing an .MDB database file Pin
SignMan3597-Feb-05 15:07
SignMan3597-Feb-05 15:07 
GeneralRe: Using an .MDB database file Pin
Luis Alonso Ramos7-Feb-05 19:27
Luis Alonso Ramos7-Feb-05 19:27 
GeneralLinked list some sort of help Pin
mik5557-Feb-05 13:37
mik5557-Feb-05 13:37 
GeneralRe: Linked list some sort of help Pin
rchokler7-Feb-05 21:15
rchokler7-Feb-05 21:15 
GeneralRe: Linked list some sort of help Pin
leppie7-Feb-05 21:37
leppie7-Feb-05 21:37 
GeneralDataGrid Question Pin
jll03307-Feb-05 13:25
jll03307-Feb-05 13:25 
GeneralDesigning Problem Pin
rchokler7-Feb-05 13:15
rchokler7-Feb-05 13:15 
QuestionWhy can't the as operator perform user-defined conversions? Pin
Patric_J7-Feb-05 12:17
Patric_J7-Feb-05 12:17 
AnswerRe: Why can't the as operator perform user-defined conversions? Pin
leppie7-Feb-05 20:56
leppie7-Feb-05 20:56 
GeneralDataGrid Question Pin
jll03307-Feb-05 11:53
jll03307-Feb-05 11:53 
GeneralCapture STDIO from DLL Pin
Larsenal7-Feb-05 11:17
Larsenal7-Feb-05 11:17 
GeneralRe: Capture STDIO from DLL Pin
leppie7-Feb-05 21:53
leppie7-Feb-05 21:53 

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.