Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
QuestionProxy and AxWebBrowser Pin
lalspo8-Nov-08 19:09
lalspo8-Nov-08 19:09 
AnswerRe: Proxy and AxWebBrowser [modified] Pin
sph3rex9-Nov-08 0:58
sph3rex9-Nov-08 0:58 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo9-Nov-08 23:41
lalspo9-Nov-08 23:41 
GeneralRe: Proxy and AxWebBrowser Pin
sph3rex9-Nov-08 23:54
sph3rex9-Nov-08 23:54 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo10-Nov-08 23:19
lalspo10-Nov-08 23:19 
QuestionC# and NUSOAP, blank results Pin
Patricio Tapia8-Nov-08 16:38
Patricio Tapia8-Nov-08 16:38 
Questionhow to use formating in richtextbox.. Pin
raj2313628-Nov-08 16:34
raj2313628-Nov-08 16:34 
AnswerRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 1:00
sph3rex9-Nov-08 1:00 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:29
raj2313629-Nov-08 19:29 
GeneralRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 19:36
sph3rex9-Nov-08 19:36 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:43
raj2313629-Nov-08 19:43 
QuestionDocking a Windows Form to the edge of a screen Pin
Jordanwb8-Nov-08 16:05
Jordanwb8-Nov-08 16:05 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
sph3rex9-Nov-08 1:03
sph3rex9-Nov-08 1:03 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
Jordanwb9-Nov-08 2:57
Jordanwb9-Nov-08 2:57 
GeneralRe: Docking a Windows Form to the edge of a screen Pin
Eddy Vluggen9-Nov-08 22:02
professionalEddy Vluggen9-Nov-08 22:02 
QuestionDoes any one know about how to code for automated shift scheduling using genetic algorithm?? Pin
hiewmoi8-Nov-08 11:01
hiewmoi8-Nov-08 11:01 
QuestionColour clicker Pin
boberick28-Nov-08 1:41
boberick28-Nov-08 1:41 
GeneralRe: Colour clicker Pin
Luc Pattyn8-Nov-08 2:53
sitebuilderLuc Pattyn8-Nov-08 2:53 
AnswerRe: Colour clicker Pin
Muammar©8-Nov-08 23:59
Muammar©8-Nov-08 23:59 
QuestionClosing sockets in asynchronous TCP server Pin
Metal767-Nov-08 22:42
Metal767-Nov-08 22:42 
I'm developing an application in which multiple clients exchange data on a TCP link with a server using a custom protocol.

I've chosen the asynchronous approach to implement the server: i.e. my application listens for incoming connection with BeginAccept, and accepts them with EndAccept, receives data with BeginReceive/EndReceive and so on. I also keep a list of connected client state information, so that the users of my class can read several info about the clients (IP address, connection state etc.)

Now, I'm implementing several methods to forcibly disconnect a client, and to shutdown the whole server (disconnect all the clients and release server resources). Unfortunately, simply closeing the clients + server sockets does not work because the pending operations (EndAccept etc.) fail with various kind of exceptions (NullReference, ObjectDisposed etc.)

Is there a correct way to forcibly shutdown connections?

Regards,
Andrea
AnswerRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 1:01
sitebuilderNicholas Butler8-Nov-08 1:01 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Metal768-Nov-08 1:10
Metal768-Nov-08 1:10 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 2:39
sitebuilderNicholas Butler8-Nov-08 2:39 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Metal768-Nov-08 23:16
Metal768-Nov-08 23:16 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler9-Nov-08 3:41
sitebuilderNicholas Butler9-Nov-08 3:41 

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.