Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Sockets / _DisconnectOverlappedAsyncResult.cs / 1 / _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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509LogoTypeExtension.cs
- GridViewCancelEditEventArgs.cs
- XamlFigureLengthSerializer.cs
- GradientBrush.cs
- BooleanAnimationBase.cs
- SqlBooleanizer.cs
- BufferedReadStream.cs
- ToolStripArrowRenderEventArgs.cs
- BindingOperations.cs
- sortedlist.cs
- TripleDESCryptoServiceProvider.cs
- _UriTypeConverter.cs
- XmlSchemaRedefine.cs
- HttpContextServiceHost.cs
- DataRowExtensions.cs
- ComplusTypeValidator.cs
- Helper.cs
- AsyncCodeActivity.cs
- XsltContext.cs
- ConnectionStringSettings.cs
- RelatedPropertyManager.cs
- ItemAutomationPeer.cs
- AutomationPropertyInfo.cs
- CellCreator.cs
- UpdateExpressionVisitor.cs
- CqlLexer.cs
- CopyAttributesAction.cs
- DataGridViewCellStyleChangedEventArgs.cs
- UDPClient.cs
- PanelContainerDesigner.cs
- NamedPipeAppDomainProtocolHandler.cs
- ConnectionInterfaceCollection.cs
- SchemaNames.cs
- ToolStripArrowRenderEventArgs.cs
- SqlMethodAttribute.cs
- SizeConverter.cs
- InstalledFontCollection.cs
- Operand.cs
- EventDescriptor.cs
- SerializationTrace.cs
- DBConnection.cs
- PolicyStatement.cs
- SafeLibraryHandle.cs
- MemberMaps.cs
- ServiceRouteHandler.cs
- ProofTokenCryptoHandle.cs
- ScriptServiceAttribute.cs
- ReaderOutput.cs
- IisTraceListener.cs
- XsltInput.cs
- _NegotiateClient.cs
- HandleValueEditor.cs
- ThreadAttributes.cs
- MouseWheelEventArgs.cs
- EventMemberCodeDomSerializer.cs
- PackagePart.cs
- ResourceSet.cs
- AdornerHitTestResult.cs
- OletxTransactionHeader.cs
- SecuritySessionServerSettings.cs
- ConnectionsZone.cs
- PageWrapper.cs
- ScaleTransform.cs
- TrailingSpaceComparer.cs
- Application.cs
- SemaphoreSlim.cs
- SqlParameter.cs
- XmlHierarchyData.cs
- newinstructionaction.cs
- SimpleMailWebEventProvider.cs
- AncillaryOps.cs
- FileLogRecordStream.cs
- Metafile.cs
- EventManager.cs
- Highlights.cs
- Int32CAMarshaler.cs
- DataTableNewRowEvent.cs
- TextBlock.cs
- SqlDataRecord.cs
- WebPartMovingEventArgs.cs
- ParallelActivityDesigner.cs
- ReadWriteSpinLock.cs
- FunctionDescription.cs
- DefaultMemberAttribute.cs
- UrlMappingsModule.cs
- WindowsTokenRoleProvider.cs
- ActivitySurrogate.cs
- SmtpDigestAuthenticationModule.cs
- ByteRangeDownloader.cs
- ReferenceConverter.cs
- SqlBuffer.cs
- StreamReader.cs
- EnumCodeDomSerializer.cs
- Walker.cs
- Int32CollectionConverter.cs
- JavaScriptSerializer.cs
- FixedPosition.cs
- CodeRegionDirective.cs
- RichTextBox.cs
- XmlResolver.cs