Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
QuestionWindows service communication Pin
Justin Perez22-Sep-07 6:57
Justin Perez22-Sep-07 6:57 
AnswerRe: Windows service communication Pin
Justin Perez22-Sep-07 7:23
Justin Perez22-Sep-07 7:23 
GeneralRe: Windows service communication Pin
Scott Dorman22-Sep-07 14:25
professionalScott Dorman22-Sep-07 14:25 
QuestionXML Encryption Pin
Member 450778122-Sep-07 6:01
Member 450778122-Sep-07 6:01 
AnswerRe: XML Encryption Pin
Anthony Mushrow22-Sep-07 6:30
professionalAnthony Mushrow22-Sep-07 6:30 
AnswerRe: XML Encryption Pin
Scott Dorman22-Sep-07 14:26
professionalScott Dorman22-Sep-07 14:26 
AnswerRe: XML Encryption Pin
Nissim Salomon23-Sep-07 1:09
Nissim Salomon23-Sep-07 1:09 
QuestionTroubles closing a thread [modified] Pin
Anthony Mushrow22-Sep-07 5:49
professionalAnthony Mushrow22-Sep-07 5:49 
In my application, i start a new thread which waits for a connection from another machine:

TcpListener connect = new TcpListener(IPAddress.Any, 7777);
connect.Start();
Socket clientSocket = connect.AcceptSocket();

If it receives a connection it goes into a while loop and communicates with the other machine. And it closes when finished.
But, if i want to stop the thread before it's made a connection...

connect.AcceptSocket is blocking so...

and when i try to abort the thread nothing seems to happen.


-- modified at 11:55 Saturday 22nd September, 2007

Never mind, i made the TcpListener a class variable, and added a method that calls connect.Stop(); and flags that the thread should stop. Then everything works out.
QuestionReceive TV remote controller signals? Pin
tmp022-Sep-07 4:05
tmp022-Sep-07 4:05 
QuestionGetting Processor Id Pin
M. J. Jaya Chitra22-Sep-07 2:32
M. J. Jaya Chitra22-Sep-07 2:32 
AnswerRe: Getting Processor Id Pin
Paul Conrad22-Sep-07 5:24
professionalPaul Conrad22-Sep-07 5:24 
AnswerRe: Getting Processor Id Pin
Nissim Salomon22-Sep-07 9:21
Nissim Salomon22-Sep-07 9:21 
Questionwhy my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:19
nicolus22-Sep-07 2:19 
AnswerRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:27
Lutosław22-Sep-07 2:27 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:35
nicolus22-Sep-07 2:35 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:45
Lutosław22-Sep-07 2:45 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 3:05
nicolus22-Sep-07 3:05 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 3:52
Lutosław22-Sep-07 3:52 
QuestionUsing C++.net Interfaces in C# Pin
Sandeep Datta22-Sep-07 0:58
Sandeep Datta22-Sep-07 0:58 
AnswerRe: Using C++.net Interfaces in C# Pin
TJoe25-Sep-07 9:34
TJoe25-Sep-07 9:34 
GeneralRe: Using C++.net Interfaces in C# Pin
Sandeep Datta25-Sep-07 19:56
Sandeep Datta25-Sep-07 19:56 
QuestionHow add rows and column into DataTable Pin
That's Aragon22-Sep-07 0:52
That's Aragon22-Sep-07 0:52 
AnswerRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 0:59
pmarfleet22-Sep-07 0:59 
GeneralRe: How add rows and column into DataTable [modified] Pin
That's Aragon22-Sep-07 1:18
That's Aragon22-Sep-07 1:18 
GeneralRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 1:40
pmarfleet22-Sep-07 1:40 

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.