Code:
/ DotNET / DotNET / 8.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
- SafeRightsManagementHandle.cs
- XmlSchemaInfo.cs
- FixedBufferAttribute.cs
- XamlStyleSerializer.cs
- StringCollectionMarkupSerializer.cs
- CacheMode.cs
- ValueOfAction.cs
- Config.cs
- RegionIterator.cs
- FlowLayoutPanelDesigner.cs
- IndexedGlyphRun.cs
- ClosureBinding.cs
- Bitmap.cs
- VariableReference.cs
- ThrowHelper.cs
- FileInfo.cs
- HtmlInputReset.cs
- cookieexception.cs
- SafeFileMappingHandle.cs
- SqlErrorCollection.cs
- SafeCryptContextHandle.cs
- SmtpTransport.cs
- BindingCollection.cs
- SqlNodeAnnotation.cs
- SimpleApplicationHost.cs
- BuildProviderAppliesToAttribute.cs
- InteropAutomationProvider.cs
- DescendantQuery.cs
- ReflectionServiceProvider.cs
- QueueProcessor.cs
- Msec.cs
- ContentAlignmentEditor.cs
- X509Chain.cs
- EntityDataSourceView.cs
- DispatchProxy.cs
- MemberExpression.cs
- CacheRequest.cs
- CodeCompileUnit.cs
- ToolboxItemCollection.cs
- PageCatalogPartDesigner.cs
- MimeTypeAttribute.cs
- MsmqOutputMessage.cs
- RelationshipEndMember.cs
- ReferenceService.cs
- FontFamily.cs
- RelatedImageListAttribute.cs
- VisualStateChangedEventArgs.cs
- InternalConfigSettingsFactory.cs
- ArgumentOutOfRangeException.cs
- ModulesEntry.cs
- RuleInfoComparer.cs
- FunctionQuery.cs
- ImportDesigner.xaml.cs
- SurrogateEncoder.cs
- DocumentPageViewAutomationPeer.cs
- SafeThemeHandle.cs
- BindingExpressionBase.cs
- WindowsToolbarItemAsMenuItem.cs
- HandlerWithFactory.cs
- XmlSerializationReader.cs
- Constraint.cs
- _TLSstream.cs
- Visitors.cs
- PostBackTrigger.cs
- BoundConstants.cs
- HatchBrush.cs
- SmiRecordBuffer.cs
- ExpressionNormalizer.cs
- TextChangedEventArgs.cs
- ConfigXmlElement.cs
- XamlSerializerUtil.cs
- wgx_commands.cs
- CodeRegionDirective.cs
- ObjectQueryState.cs
- CodeConditionStatement.cs
- CryptoConfig.cs
- ConsoleKeyInfo.cs
- CharConverter.cs
- UInt64.cs
- CalendarTable.cs
- ConversionHelper.cs
- InArgument.cs
- MetadataProperty.cs
- Item.cs
- IEnumerable.cs
- InputLanguageManager.cs
- DataSourceControl.cs
- SpotLight.cs
- ContextItem.cs
- Misc.cs
- SqlClientWrapperSmiStream.cs
- DialogResultConverter.cs
- SynchronizedPool.cs
- BrowserDefinition.cs
- OdbcDataAdapter.cs
- VBIdentifierDesigner.xaml.cs
- DomNameTable.cs
- DataPagerCommandEventArgs.cs
- TrackingMemoryStream.cs
- StringFunctions.cs