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
- StringValueSerializer.cs
- DecoderBestFitFallback.cs
- InfoCardX509Validator.cs
- VisualStyleElement.cs
- AutoGeneratedField.cs
- BuildResult.cs
- OraclePermission.cs
- CalendarButtonAutomationPeer.cs
- ZoneButton.cs
- LocatorManager.cs
- InternalCache.cs
- ListViewCommandEventArgs.cs
- BrowsableAttribute.cs
- AttachedPropertyBrowsableAttribute.cs
- DesignBinding.cs
- TabletDevice.cs
- DataTableReader.cs
- CompositeFontParser.cs
- VariableQuery.cs
- ComponentDispatcher.cs
- HtmlElementEventArgs.cs
- RenderTargetBitmap.cs
- TargetConverter.cs
- EmptyEnumerable.cs
- ObjRef.cs
- EntityDataSourceMemberPath.cs
- NumberFunctions.cs
- DataControlFieldCell.cs
- ParagraphResult.cs
- ConstantCheck.cs
- HtmlFormWrapper.cs
- BitmapFrameDecode.cs
- MsmqIntegrationSecurityElement.cs
- BaseCodePageEncoding.cs
- SamlAttribute.cs
- ClientBuildManager.cs
- FixedDocument.cs
- CssClassPropertyAttribute.cs
- TraceHandler.cs
- XmlHierarchyData.cs
- InvalidFilterCriteriaException.cs
- ObjectDisposedException.cs
- SqlDataSourceSelectingEventArgs.cs
- OracleInfoMessageEventArgs.cs
- Debug.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- StorageComplexPropertyMapping.cs
- HandoffBehavior.cs
- MainMenu.cs
- ResourceIDHelper.cs
- FrameworkContentElementAutomationPeer.cs
- IPCCacheManager.cs
- RegisteredArrayDeclaration.cs
- HelpProvider.cs
- InvalidOperationException.cs
- CodeDOMUtility.cs
- ScrollPatternIdentifiers.cs
- ProviderConnectionPoint.cs
- BaseAsyncResult.cs
- CacheOutputQuery.cs
- CatchBlock.cs
- StringReader.cs
- ListBindableAttribute.cs
- RequestBringIntoViewEventArgs.cs
- ModelUtilities.cs
- SQlBooleanStorage.cs
- WebPartDisplayModeCollection.cs
- StorageEntityContainerMapping.cs
- Cursor.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- RepeatInfo.cs
- BordersPage.cs
- ErrorHandler.cs
- ScriptControl.cs
- DbConnectionOptions.cs
- File.cs
- FactoryGenerator.cs
- CellTreeNode.cs
- CommentGlyph.cs
- XmlArrayItemAttributes.cs
- StyleTypedPropertyAttribute.cs
- MSAAEventDispatcher.cs
- SqlXml.cs
- RoutedPropertyChangedEventArgs.cs
- EventData.cs
- GridViewRowPresenter.cs
- CombinedGeometry.cs
- PlatformCulture.cs
- SubqueryTrackingVisitor.cs
- EncodingTable.cs
- PrinterUnitConvert.cs
- InkCanvasAutomationPeer.cs
- OdbcParameter.cs
- ManagementBaseObject.cs
- URLAttribute.cs
- PathTooLongException.cs
- AuthenticationSection.cs
- ListView.cs
- ChtmlTextWriter.cs
- ComboBoxItem.cs