Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / SocketInformation.cs / 1305376 / SocketInformation.cs
using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; [OptionalField] EndPoint remoteEndPoint; public byte[] ProtocolInformation{ get{ return protocolInformation; } set{ protocolInformation = value; } } public SocketInformationOptions Options{ get{ return options; } set{ options = value; } } internal bool IsNonBlocking{ get{ return ((options&SocketInformationOptions.NonBlocking)!=0); } set{ if(value){ options |= SocketInformationOptions.NonBlocking; } else{ options &= ~SocketInformationOptions.NonBlocking; } } } internal bool IsConnected{ get{ return ((options&SocketInformationOptions.Connected)!=0); } set{ if(value){ options |= SocketInformationOptions.Connected; } else{ options &= ~SocketInformationOptions.Connected; } } } internal bool IsListening{ get{ return ((options&SocketInformationOptions.Listening)!=0); } set{ if(value){ options |= SocketInformationOptions.Listening; } else{ options &= ~SocketInformationOptions.Listening; } } } internal bool UseOnlyOverlappedIO{ get{ return ((options&SocketInformationOptions.UseOnlyOverlappedIO)!=0); } set{ if(value){ options |= SocketInformationOptions.UseOnlyOverlappedIO; } else{ options &= ~SocketInformationOptions.UseOnlyOverlappedIO; } } } internal EndPoint RemoteEndPoint{ get{ return remoteEndPoint; } set{ remoteEndPoint = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; [OptionalField] EndPoint remoteEndPoint; public byte[] ProtocolInformation{ get{ return protocolInformation; } set{ protocolInformation = value; } } public SocketInformationOptions Options{ get{ return options; } set{ options = value; } } internal bool IsNonBlocking{ get{ return ((options&SocketInformationOptions.NonBlocking)!=0); } set{ if(value){ options |= SocketInformationOptions.NonBlocking; } else{ options &= ~SocketInformationOptions.NonBlocking; } } } internal bool IsConnected{ get{ return ((options&SocketInformationOptions.Connected)!=0); } set{ if(value){ options |= SocketInformationOptions.Connected; } else{ options &= ~SocketInformationOptions.Connected; } } } internal bool IsListening{ get{ return ((options&SocketInformationOptions.Listening)!=0); } set{ if(value){ options |= SocketInformationOptions.Listening; } else{ options &= ~SocketInformationOptions.Listening; } } } internal bool UseOnlyOverlappedIO{ get{ return ((options&SocketInformationOptions.UseOnlyOverlappedIO)!=0); } set{ if(value){ options |= SocketInformationOptions.UseOnlyOverlappedIO; } else{ options &= ~SocketInformationOptions.UseOnlyOverlappedIO; } } } internal EndPoint RemoteEndPoint{ get{ return remoteEndPoint; } set{ remoteEndPoint = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsGrip.cs
- FindCriteriaApril2005.cs
- infer.cs
- XamlValidatingReader.cs
- StrokeCollection.cs
- EditBehavior.cs
- COM2ExtendedBrowsingHandler.cs
- DataError.cs
- NativeWindow.cs
- Package.cs
- Journaling.cs
- TextEffectCollection.cs
- AdornerLayer.cs
- FixedStringLookup.cs
- ExtractorMetadata.cs
- StaticFileHandler.cs
- StringValueConverter.cs
- WebPartConnectionsEventArgs.cs
- ChtmlTextWriter.cs
- PathFigureCollectionConverter.cs
- ColorMap.cs
- HtmlInputReset.cs
- Pen.cs
- UIElementCollection.cs
- ApplicationManager.cs
- AsymmetricKeyExchangeFormatter.cs
- Scalars.cs
- GridView.cs
- GetCryptoTransformRequest.cs
- TreeNodeEventArgs.cs
- cookiecollection.cs
- SspiNegotiationTokenAuthenticator.cs
- SmtpSection.cs
- Camera.cs
- InputEventArgs.cs
- SolidBrush.cs
- PenThreadWorker.cs
- NegotiationTokenAuthenticator.cs
- M3DUtil.cs
- TraceXPathNavigator.cs
- LineMetrics.cs
- ImageButton.cs
- CodeConstructor.cs
- CqlLexer.cs
- XPathBinder.cs
- WebZone.cs
- HostExecutionContextManager.cs
- WebPartVerbCollection.cs
- DetailsViewPageEventArgs.cs
- RemotingAttributes.cs
- QilValidationVisitor.cs
- CheckBoxAutomationPeer.cs
- CachedFontFace.cs
- GenerateTemporaryTargetAssembly.cs
- CodeArrayIndexerExpression.cs
- RuntimeEnvironment.cs
- HttpCapabilitiesSectionHandler.cs
- AppLevelCompilationSectionCache.cs
- _SSPIWrapper.cs
- NativeActivityAbortContext.cs
- DES.cs
- ProtocolsConfigurationEntry.cs
- InstanceCreationEditor.cs
- WinCategoryAttribute.cs
- WindowsFormsHost.cs
- DataServiceRequest.cs
- TimeoutException.cs
- InternalSafeNativeMethods.cs
- SpeakInfo.cs
- ListViewUpdatedEventArgs.cs
- PreviewPrintController.cs
- SafeNativeMethods.cs
- Accessible.cs
- PolicyValidationException.cs
- SQLMembershipProvider.cs
- SettingsPropertyValueCollection.cs
- SendMailErrorEventArgs.cs
- ScriptManagerProxy.cs
- WorkflowInstanceExtensionCollection.cs
- WebEventCodes.cs
- CatalogZoneBase.cs
- TdsParserSafeHandles.cs
- AdPostCacheSubstitution.cs
- ValidationSummary.cs
- WebServiceMethodData.cs
- OdbcConnectionOpen.cs
- XmlValidatingReader.cs
- PrinterUnitConvert.cs
- LoginUtil.cs
- DetailsViewRow.cs
- TransportSecurityProtocolFactory.cs
- BridgeDataReader.cs
- ToolStripDropDownMenu.cs
- TdsParameterSetter.cs
- Keywords.cs
- EntityDataSourceEntitySetNameItem.cs
- Memoizer.cs
- WindowsGraphicsWrapper.cs
- View.cs
- HandlerBase.cs