Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: SMPP Client for C# .NET application Pin
Jassim Rahma1-Nov-09 10:26
Jassim Rahma1-Nov-09 10:26 
AnswerRe: SMPP Client for C# .NET application Pin
RAmthods18-Apr-11 7:37
RAmthods18-Apr-11 7:37 
AnswerRe: SMPP Client for C# .NET application [modified] Pin
Member 378951526-Apr-11 23:41
Member 378951526-Apr-11 23:41 
QuestionComboBox problem Pin
khosnur31-Oct-09 20:04
khosnur31-Oct-09 20:04 
AnswerRe: ComboBox problem Pin
dojohansen31-Oct-09 23:10
dojohansen31-Oct-09 23:10 
QuestionMessageBox in C# Pin
Prakash Halder31-Oct-09 19:23
Prakash Halder31-Oct-09 19:23 
AnswerRe: MessageBox in C# Pin
khosnur31-Oct-09 19:56
khosnur31-Oct-09 19:56 
AnswerRe: MessageBox in C# Pin
Md. Marufuzzaman1-Nov-09 5:44
professionalMd. Marufuzzaman1-Nov-09 5:44 
QuestionDrawing/Graphics in C#: Drawing/Graphics in C#, if the mouse is right clicked over square,turn square into a diamond. Pin
lexical131-Oct-09 19:03
lexical131-Oct-09 19:03 
AnswerMessage Closed Pin
31-Oct-09 20:45
stancrm31-Oct-09 20:45 
GeneralRe: Drawing/Graphics in C#: Drawing/Graphics in C#, if the mouse is right clicked over square,turn square into a diamond. Pin
lexical131-Oct-09 21:37
lexical131-Oct-09 21:37 
GeneralRe: Drawing/Graphics in C#: Drawing/Graphics in C#, if the mouse is right clicked over square,turn square into a diamond. Pin
dojohansen31-Oct-09 22:58
dojohansen31-Oct-09 22:58 
GeneralRe: Drawing/Graphics in C#: Drawing/Graphics in C#, if the mouse is right clicked over square,turn square into a diamond. Pin
lexical11-Nov-09 0:04
lexical11-Nov-09 0:04 
Questionread barcode using usb scanner Pin
vivekmalik005731-Oct-09 19:14
vivekmalik005731-Oct-09 19:14 
AnswerRe: read barcode using usb scanner Pin
Abhishek Sur31-Oct-09 21:55
professionalAbhishek Sur31-Oct-09 21:55 
QuestionRunning a command on remote pc Pin
CodingYoshi31-Oct-09 15:32
CodingYoshi31-Oct-09 15:32 
AnswerRe: Running a command on remote pc Pin
Wes Aday31-Oct-09 18:11
professionalWes Aday31-Oct-09 18:11 
QuestionVoice streaming using C# Pin
tobibabs31-Oct-09 13:52
tobibabs31-Oct-09 13:52 
AnswerRe: Voice streaming using C# Pin
Mycroft Holmes31-Oct-09 22:00
professionalMycroft Holmes31-Oct-09 22:00 
QuestionAsync TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? Pin
Chesnokov Yuriy31-Oct-09 10:49
professionalChesnokov Yuriy31-Oct-09 10:49 
AnswerRe: Async TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? Pin
N a v a n e e t h31-Oct-09 18:22
N a v a n e e t h31-Oct-09 18:22 
QuestionRe: Async TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? Pin
Chesnokov Yuriy31-Oct-09 20:06
professionalChesnokov Yuriy31-Oct-09 20:06 
AnswerRe: Async TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? Pin
N a v a n e e t h31-Oct-09 21:57
N a v a n e e t h31-Oct-09 21:57 
It looks like you are new to network programming. I'd suggest to stay away from asynchronous methods for now. Spawn new threads or use ThreadPool to do the work. Once you feel comfortable with that design, try for asynchronous method. Manually creating threads and using it for handling connections and messages works well. You need asynchronous methods only when you need high scalability.

That said, there is no method to stop the asynchronous call especially when the call involves unmanaged code execution. A call to EndAccept will not help as it waits until the operation completes.

Chesnokov Yuriy wrote:
Are there better ways to work with Socket class instead of that Tcp abstraction?


It depends on what you are doing. If you are doing for learning, TcpListener and TcpClient should be enough. For any serious network programming work with Socket class directly. This[^] MSDN article may help you.

Best wishes,
Navaneeth

GeneralRe: Async TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? [modified] Pin
Chesnokov Yuriy31-Oct-09 23:36
professionalChesnokov Yuriy31-Oct-09 23:36 
QuestionRe: Async TcpListener recieves ClientAccept after stoping listening. How to notify it that the client disconnected? Pin
Chesnokov Yuriy1-Nov-09 0:56
professionalChesnokov Yuriy1-Nov-09 0:56 

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.