Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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; } } } } } // 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
- UnaryQueryOperator.cs
- SignedXml.cs
- StateDesigner.LayoutSelectionGlyph.cs
- SignatureHelper.cs
- UnsafeMethods.cs
- CursorConverter.cs
- NamedPipeDuplicateContext.cs
- OleDbInfoMessageEvent.cs
- KeyNameIdentifierClause.cs
- Viewport3DVisual.cs
- TypeBrowser.xaml.cs
- DiscardableAttribute.cs
- RoleBoolean.cs
- ObjectDataSourceView.cs
- ApplicationSecurityInfo.cs
- LineBreakRecord.cs
- TextRangeSerialization.cs
- BamlCollectionHolder.cs
- EncodingTable.cs
- SimpleHandlerFactory.cs
- MaterialGroup.cs
- MouseGestureValueSerializer.cs
- ServiceSecurityAuditElement.cs
- CustomValidator.cs
- CodeCastExpression.cs
- Utils.cs
- XmlNamespaceMappingCollection.cs
- ObjectCacheSettings.cs
- WmiEventSink.cs
- XDeferredAxisSource.cs
- QuaternionAnimation.cs
- AdapterDictionary.cs
- CloseCryptoHandleRequest.cs
- IdentityModelDictionary.cs
- InkSerializer.cs
- HttpProfileBase.cs
- XmlSchemaAttributeGroupRef.cs
- TextElementEditingBehaviorAttribute.cs
- ServiceParser.cs
- StrongTypingException.cs
- HyperLinkField.cs
- ZoomPercentageConverter.cs
- IndexOutOfRangeException.cs
- XamlFilter.cs
- ObjectItemAttributeAssemblyLoader.cs
- HtmlInputRadioButton.cs
- ButtonBase.cs
- IdentitySection.cs
- Site.cs
- ArgIterator.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ObjectPersistData.cs
- EntityContainerEntitySetDefiningQuery.cs
- AccessDataSourceView.cs
- RawStylusInputCustomDataList.cs
- Types.cs
- CopyAttributesAction.cs
- NotImplementedException.cs
- ObjectAssociationEndMapping.cs
- HitTestDrawingContextWalker.cs
- BadImageFormatException.cs
- ContentType.cs
- EntityWithKeyStrategy.cs
- HebrewCalendar.cs
- EditorAttribute.cs
- TerminateDesigner.cs
- CLSCompliantAttribute.cs
- DesignerCommandSet.cs
- TypeDescriptor.cs
- OneOfScalarConst.cs
- ObjectStateEntry.cs
- propertytag.cs
- FloaterParagraph.cs
- PointUtil.cs
- CatalogPartChrome.cs
- _DisconnectOverlappedAsyncResult.cs
- EventLogEntry.cs
- RawAppCommandInputReport.cs
- ITextView.cs
- ContainerSelectorGlyph.cs
- EndpointNotFoundException.cs
- TransactionScope.cs
- RelationshipManager.cs
- InputElement.cs
- Blend.cs
- PolygonHotSpot.cs
- StreamInfo.cs
- ButtonAutomationPeer.cs
- XsltQilFactory.cs
- QilUnary.cs
- SessionStateContainer.cs
- ListViewItem.cs
- MultiViewDesigner.cs
- FontWeightConverter.cs
- ConfigurationConverterBase.cs
- WorkflowClientDeliverMessageWrapper.cs
- XmlHierarchicalEnumerable.cs
- AppModelKnownContentFactory.cs
- XmlSchemaResource.cs
- HttpApplicationFactory.cs