Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StyleBamlTreeBuilder.cs
- Function.cs
- DataGridViewRowsAddedEventArgs.cs
- OpenFileDialog.cs
- NetworkInterface.cs
- SQLStringStorage.cs
- PropertyValueChangedEvent.cs
- SecurityDescriptor.cs
- QueryStatement.cs
- CodeDOMProvider.cs
- XslAst.cs
- TreeNodeCollectionEditor.cs
- LinkDescriptor.cs
- ObjectListCommandCollection.cs
- SystemException.cs
- RootDesignerSerializerAttribute.cs
- TypeElement.cs
- ConstrainedDataObject.cs
- ConfigurationPermission.cs
- FileRegion.cs
- BrowserDefinition.cs
- RelationshipEntry.cs
- TableLayoutSettingsTypeConverter.cs
- MetadataItem.cs
- ImageCodecInfoPrivate.cs
- SynchronizationLockException.cs
- Single.cs
- Translator.cs
- OdbcDataAdapter.cs
- JavaScriptObjectDeserializer.cs
- SafeHandle.cs
- SafeNativeMethods.cs
- ImportCatalogPart.cs
- LambdaCompiler.Binary.cs
- QfeChecker.cs
- TextDecorationLocationValidation.cs
- LookupBindingPropertiesAttribute.cs
- DashStyle.cs
- HtmlButton.cs
- SqlCharStream.cs
- SAPICategories.cs
- UserControlCodeDomTreeGenerator.cs
- DataConnectionHelper.cs
- WeakEventManager.cs
- TextParagraphView.cs
- ComPlusServiceHost.cs
- Size3DValueSerializer.cs
- GradientStop.cs
- LambdaCompiler.Lambda.cs
- SchemaNamespaceManager.cs
- PointAnimationUsingPath.cs
- DataGridViewControlCollection.cs
- FamilyTypeface.cs
- VersionPair.cs
- SystemIPv4InterfaceProperties.cs
- CodePageEncoding.cs
- SmiRecordBuffer.cs
- FormViewInsertEventArgs.cs
- ReferenceSchema.cs
- MethodMessage.cs
- DataBindingsDialog.cs
- HMACMD5.cs
- CharacterShapingProperties.cs
- ProgressBarHighlightConverter.cs
- AvTrace.cs
- GifBitmapEncoder.cs
- CollectionChange.cs
- XmlCharacterData.cs
- SecurityException.cs
- WindowsComboBox.cs
- TypeUsageBuilder.cs
- SqlProviderManifest.cs
- XmlSchemaAnnotation.cs
- FlowDocument.cs
- DataBoundControlActionList.cs
- SchemaContext.cs
- Helper.cs
- TimeSpanSecondsConverter.cs
- UnsafeNativeMethods.cs
- DefaultWorkflowTransactionService.cs
- Deserializer.cs
- DPTypeDescriptorContext.cs
- InternalPermissions.cs
- MenuRendererStandards.cs
- AuthenticationSection.cs
- InstalledVoice.cs
- ConfigurationStrings.cs
- XmlSchemaRedefine.cs
- RegexTypeEditor.cs
- XmlnsCompatibleWithAttribute.cs
- ListViewGroup.cs
- DataBoundLiteralControl.cs
- HwndMouseInputProvider.cs
- SqlAliasesReferenced.cs
- CompositeCollection.cs
- OLEDB_Util.cs
- __TransparentProxy.cs
- XomlSerializationHelpers.cs
- MenuStrip.cs
- FileDialog_Vista_Interop.cs