Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / _DisconnectOverlappedAsyncResult.cs / 1305376 / _DisconnectOverlappedAsyncResult.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System; using System.Net; using System.Runtime.InteropServices; using System.Threading; using Microsoft.Win32; // // DisconnectOverlappedAsyncResult - used to take care of storage for async Socket BeginAccept call. // internal class DisconnectOverlappedAsyncResult : BaseOverlappedAsyncResult { internal DisconnectOverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback): base(socket,asyncState,asyncCallback) { } // // This method will be called by us when the IO completes synchronously and // by the ThreadPool when the IO completes asynchronously. (only called on WinNT) // internal override object PostCompletion(int numBytes) { if (ErrorCode == (int)SocketError.Success) { Socket socket = (Socket)AsyncObject; socket.SetToDisconnected(); socket.m_RemoteEndPoint = null; } return base.PostCompletion(numBytes); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyTimeConverter.cs
- TypeForwardedToAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- sqlstateclientmanager.cs
- ItemDragEvent.cs
- RtType.cs
- ComPlusDiagnosticTraceRecords.cs
- XmlSchemaSimpleTypeRestriction.cs
- Control.cs
- _NestedSingleAsyncResult.cs
- SiteMapSection.cs
- Splitter.cs
- XamlStackWriter.cs
- Parallel.cs
- GroupQuery.cs
- TextServicesProperty.cs
- StyleHelper.cs
- TextRenderingModeValidation.cs
- JsonStringDataContract.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- UdpSocketReceiveManager.cs
- TraceShell.cs
- graph.cs
- AutoCompleteStringCollection.cs
- XPathParser.cs
- BezierSegment.cs
- IPipelineRuntime.cs
- CompilationUnit.cs
- FixedPageAutomationPeer.cs
- ClaimComparer.cs
- SettingsProperty.cs
- ObjectDataSourceFilteringEventArgs.cs
- BindingNavigator.cs
- SoapExtensionStream.cs
- ProtocolViolationException.cs
- X509Certificate.cs
- DataGridViewSortCompareEventArgs.cs
- PropertyFilterAttribute.cs
- BuildProvider.cs
- XmlSchemaDatatype.cs
- Condition.cs
- ExpressionBindingCollection.cs
- PageBuildProvider.cs
- ButtonField.cs
- RestHandler.cs
- FormViewPageEventArgs.cs
- QEncodedStream.cs
- NaturalLanguageHyphenator.cs
- PerspectiveCamera.cs
- TagElement.cs
- DrawListViewItemEventArgs.cs
- SortableBindingList.cs
- CustomCredentialPolicy.cs
- ClientSponsor.cs
- TempEnvironment.cs
- LoadWorkflowCommand.cs
- RadialGradientBrush.cs
- ACL.cs
- XPathExpr.cs
- XmlTextReaderImplHelpers.cs
- FacetChecker.cs
- TypographyProperties.cs
- StoreContentChangedEventArgs.cs
- ProcessHost.cs
- ObjectListComponentEditor.cs
- HtmlTextArea.cs
- IndicShape.cs
- BrowserCapabilitiesFactory.cs
- SystemException.cs
- TreeView.cs
- RSACryptoServiceProvider.cs
- SoapReflectionImporter.cs
- ArgumentNullException.cs
- KeyValuePairs.cs
- XmlSchemaSimpleTypeList.cs
- SignatureResourcePool.cs
- Run.cs
- CachedTypeface.cs
- DtdParser.cs
- UnsafeNativeMethods.cs
- TextChangedEventArgs.cs
- Vector.cs
- CalendarDataBindingHandler.cs
- DefaultBinder.cs
- Visitors.cs
- MethodExpression.cs
- ProcessStartInfo.cs
- FixedStringLookup.cs
- Part.cs
- ThaiBuddhistCalendar.cs
- SQLConvert.cs
- UInt16Storage.cs
- RsaSecurityKey.cs
- FileDataSourceCache.cs
- WebScriptMetadataMessage.cs
- TextBlock.cs
- HttpClientCertificate.cs
- NameValueCollection.cs
- FileAuthorizationModule.cs