Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Sockets / SocketInformation.cs / 1 / SocketInformation.cs
namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; 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; } } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PerfCounterSection.cs
- TerminatorSinks.cs
- ToolStripRenderer.cs
- QualifiedCellIdBoolean.cs
- BlockUIContainer.cs
- VarInfo.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ColorDialog.cs
- AxisAngleRotation3D.cs
- FileDialog_Vista.cs
- NetworkInformationPermission.cs
- PkcsUtils.cs
- HtmlImage.cs
- XmlBinaryReader.cs
- InvokeHandlers.cs
- HwndMouseInputProvider.cs
- Vector.cs
- ScriptRef.cs
- X509Utils.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- BatchWriter.cs
- basemetadatamappingvisitor.cs
- MainMenu.cs
- TabletDeviceInfo.cs
- DeclaredTypeElement.cs
- ChangePassword.cs
- GPPOINT.cs
- EncryptedReference.cs
- ContainerUtilities.cs
- MILUtilities.cs
- BaseResourcesBuildProvider.cs
- FlowDocumentReaderAutomationPeer.cs
- DefaultProxySection.cs
- PiiTraceSource.cs
- UnsafeNativeMethods.cs
- DrawingServices.cs
- LinqDataView.cs
- RuntimeHelpers.cs
- LicenseContext.cs
- WorkflowOwnershipException.cs
- HttpProtocolReflector.cs
- Point3DAnimation.cs
- SmiEventStream.cs
- ReflectionTypeLoadException.cs
- ControlParameter.cs
- SelectionUIService.cs
- DefaultObjectSerializer.cs
- HwndSourceParameters.cs
- ReadOnlyTernaryTree.cs
- HttpContext.cs
- UshortList2.cs
- SignedXml.cs
- FileFormatException.cs
- DesignerActionList.cs
- SafeNativeMemoryHandle.cs
- SqlDataSourceFilteringEventArgs.cs
- ApplicationServiceManager.cs
- VisualStyleElement.cs
- UncommonField.cs
- CrossSiteScriptingValidation.cs
- Int16Storage.cs
- IsolatedStorage.cs
- assertwrapper.cs
- ServiceDocument.cs
- PartitionResolver.cs
- RepeaterItemEventArgs.cs
- Timer.cs
- Label.cs
- LogLogRecordEnumerator.cs
- ColumnResult.cs
- sqlmetadatafactory.cs
- HostedAspNetEnvironment.cs
- TreeBuilderBamlTranslator.cs
- PrimitiveXmlSerializers.cs
- SymbolEqualComparer.cs
- CodeSubDirectoriesCollection.cs
- HMACMD5.cs
- SafeArchiveContext.cs
- BmpBitmapEncoder.cs
- CharConverter.cs
- CriticalFinalizerObject.cs
- EventLogEntryCollection.cs
- InternalBase.cs
- SplineKeyFrames.cs
- FixedFlowMap.cs
- Util.cs
- ExtendedProperty.cs
- WbemException.cs
- FlowLayoutPanelDesigner.cs
- ProxyWebPartManager.cs
- SafeTimerHandle.cs
- DbConnectionOptions.cs
- ChannelManager.cs
- IDReferencePropertyAttribute.cs
- TextMetrics.cs
- BinaryFormatterWriter.cs
- ThreadPool.cs
- SelectManyQueryOperator.cs
- ListDictionary.cs
- SecurityState.cs