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
- ColorConvertedBitmap.cs
- SafePEFileHandle.cs
- ChtmlCalendarAdapter.cs
- Utils.cs
- RuntimeConfigLKG.cs
- SelectedDatesCollection.cs
- FloaterParagraph.cs
- InlineObject.cs
- DefaultBinder.cs
- ContextMenu.cs
- ObservableCollectionDefaultValueFactory.cs
- HtmlTableRow.cs
- SHA512.cs
- BinaryFormatterWriter.cs
- XPathBinder.cs
- SqlCacheDependencySection.cs
- OLEDB_Util.cs
- TextSimpleMarkerProperties.cs
- ItemDragEvent.cs
- MessageSmuggler.cs
- DataBoundControlAdapter.cs
- LassoHelper.cs
- SiteMapNode.cs
- PaperSize.cs
- UnhandledExceptionEventArgs.cs
- BindToObject.cs
- DebugView.cs
- CDSCollectionETWBCLProvider.cs
- ImmComposition.cs
- Int32AnimationUsingKeyFrames.cs
- HttpPostedFile.cs
- ImmComposition.cs
- DecoderBestFitFallback.cs
- Soap12ProtocolImporter.cs
- Pair.cs
- counter.cs
- BackgroundFormatInfo.cs
- ObjectDataSourceView.cs
- IndentedWriter.cs
- SessionStateSection.cs
- ParenthesizePropertyNameAttribute.cs
- WindowsIPAddress.cs
- ControlBindingsCollection.cs
- SoapMessage.cs
- Operand.cs
- TemplateKey.cs
- BindingContext.cs
- PropertyPanel.cs
- Missing.cs
- CorrelationTokenTypeConvertor.cs
- SmiMetaDataProperty.cs
- coordinatorscratchpad.cs
- FloaterBaseParaClient.cs
- DependencyObjectPropertyDescriptor.cs
- PathFigureCollection.cs
- DataControlButton.cs
- PropertyEntry.cs
- BreadCrumbTextConverter.cs
- Listbox.cs
- MergablePropertyAttribute.cs
- DataView.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ObjectQuery_EntitySqlExtensions.cs
- IndexOutOfRangeException.cs
- ExpressionVisitor.cs
- COSERVERINFO.cs
- SHA384Cng.cs
- BlobPersonalizationState.cs
- Message.cs
- WebSysDescriptionAttribute.cs
- ProfileBuildProvider.cs
- MimeWriter.cs
- ActivationArguments.cs
- Variant.cs
- CustomWebEventKey.cs
- TagPrefixInfo.cs
- AuthenticationException.cs
- ReachDocumentSequenceSerializer.cs
- SafeHandles.cs
- DecimalConstantAttribute.cs
- FilterException.cs
- XmlSchemaExternal.cs
- XmlFormatExtensionPrefixAttribute.cs
- ExternalFile.cs
- EventMap.cs
- StreamGeometryContext.cs
- indexingfiltermarshaler.cs
- ListDataBindEventArgs.cs
- ExpressionNode.cs
- followingquery.cs
- RemoteX509Token.cs
- WithStatement.cs
- HttpStreamXmlDictionaryWriter.cs
- ErrorFormatterPage.cs
- DbConnectionHelper.cs
- Literal.cs
- ServiceNameCollection.cs
- XPathNavigator.cs
- ExpressionBuilderContext.cs
- ValueSerializer.cs