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
- OutputScopeManager.cs
- PtsHost.cs
- IsolatedStorageFile.cs
- RightsManagementInformation.cs
- CheckedPointers.cs
- NotImplementedException.cs
- MetadataFile.cs
- XmlDigitalSignatureProcessor.cs
- SpellerHighlightLayer.cs
- _ListenerAsyncResult.cs
- Margins.cs
- MenuBase.cs
- CharacterHit.cs
- TrackingServices.cs
- ProfessionalColorTable.cs
- PopupRoot.cs
- PeerNodeTraceRecord.cs
- InternalSafeNativeMethods.cs
- InputProcessorProfilesLoader.cs
- ReachFixedDocumentSerializerAsync.cs
- HelpProvider.cs
- Rectangle.cs
- odbcmetadatacolumnnames.cs
- EntityModelBuildProvider.cs
- EmbeddedMailObjectsCollection.cs
- MediaCommands.cs
- HashStream.cs
- remotingproxy.cs
- rsa.cs
- HostSecurityManager.cs
- translator.cs
- CodeChecksumPragma.cs
- XhtmlBasicLinkAdapter.cs
- MouseActionValueSerializer.cs
- TextRangeEdit.cs
- CodeCompiler.cs
- ExpressionNode.cs
- IPHostEntry.cs
- WinEventQueueItem.cs
- XmlBinaryWriterSession.cs
- AsymmetricAlgorithm.cs
- ImageButton.cs
- SqlVisitor.cs
- DependencyPropertyValueSerializer.cs
- StringFreezingAttribute.cs
- DisplayInformation.cs
- LogicalExpressionEditor.cs
- MouseButton.cs
- ConfigXmlWhitespace.cs
- X509WindowsSecurityToken.cs
- XmlCompatibilityReader.cs
- SnapLine.cs
- XmlMemberMapping.cs
- ControlPropertyNameConverter.cs
- SqlClientPermission.cs
- PathNode.cs
- OracleMonthSpan.cs
- TableLayoutColumnStyleCollection.cs
- InheritablePropertyChangeInfo.cs
- ColorDialog.cs
- DynamicDocumentPaginator.cs
- DataSourceSelectArguments.cs
- StringReader.cs
- XmlQueryContext.cs
- cookie.cs
- DetailsViewRow.cs
- SchemaContext.cs
- TextAutomationPeer.cs
- SQLInt32Storage.cs
- GPStream.cs
- _DisconnectOverlappedAsyncResult.cs
- MaskInputRejectedEventArgs.cs
- _NtlmClient.cs
- GridItem.cs
- TreeViewImageKeyConverter.cs
- SoapAttributes.cs
- DetailsViewActionList.cs
- MaskedTextBoxTextEditor.cs
- FontFamilyConverter.cs
- DockingAttribute.cs
- HttpMethodAttribute.cs
- URLAttribute.cs
- XPathNavigatorReader.cs
- DataGridViewAdvancedBorderStyle.cs
- CursorInteropHelper.cs
- _FtpDataStream.cs
- IdentitySection.cs
- AnimationTimeline.cs
- ExtendLockCommand.cs
- TreeIterators.cs
- AttributeQuery.cs
- While.cs
- EdmTypeAttribute.cs
- DateTimeSerializationSection.cs
- DataObjectAttribute.cs
- CodeAttributeArgumentCollection.cs
- Tokenizer.cs
- RadioButtonFlatAdapter.cs
- CollectionView.cs
- UnsafeNativeMethods.cs