Method HandleRequest
HandleRequest(IAsyncResult)
Asynchronous callback to handle a client connection request on MyHttpListener. This method is recursive in that it will call itself immediately after receiving a new incoming request to listen for the next connection.
Declaration
protected virtual void HandleRequest(IAsyncResult ar)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | ar | Asynchronous result from previous request. Pass null to listen for an initial request |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | thrown when the request result code is unknown |