Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeCatchClause.cs
- Win32PrintDialog.cs
- Literal.cs
- RulePatternOps.cs
- PageThemeBuildProvider.cs
- CommandExpr.cs
- XmlWrappingReader.cs
- KeyGesture.cs
- Constants.cs
- WebSysDisplayNameAttribute.cs
- DataSourceHelper.cs
- GlobalizationSection.cs
- PenLineJoinValidation.cs
- SchemaInfo.cs
- Panel.cs
- VectorKeyFrameCollection.cs
- PropertiesTab.cs
- DataRelation.cs
- InputLangChangeEvent.cs
- HitTestFilterBehavior.cs
- OdbcErrorCollection.cs
- Literal.cs
- CallbackException.cs
- QilValidationVisitor.cs
- StrongNamePublicKeyBlob.cs
- SchemaDeclBase.cs
- IPAddressCollection.cs
- HelpInfo.cs
- UnwrappedTypesXmlSerializerManager.cs
- XmlLinkedNode.cs
- TemplateControlCodeDomTreeGenerator.cs
- ElementAction.cs
- GeneratedCodeAttribute.cs
- Pen.cs
- SecondaryIndexDefinition.cs
- LocalizationComments.cs
- CopyNodeSetAction.cs
- ViewValidator.cs
- CreatingCookieEventArgs.cs
- SqlCaseSimplifier.cs
- RightsManagementPermission.cs
- InternalDispatchObject.cs
- ProgressBarHighlightConverter.cs
- CallbackValidatorAttribute.cs
- ClientBuildManagerCallback.cs
- ProtocolsConfiguration.cs
- Merger.cs
- SafeNativeMethods.cs
- MonthCalendar.cs
- RNGCryptoServiceProvider.cs
- StyleModeStack.cs
- HierarchicalDataSourceControl.cs
- SrgsItemList.cs
- CompilerParameters.cs
- MessageDescriptionCollection.cs
- CommandConverter.cs
- LinqDataSourceDisposeEventArgs.cs
- UnionExpr.cs
- ExternalException.cs
- SoapSchemaImporter.cs
- SubtreeProcessor.cs
- AnnotationAdorner.cs
- CultureInfoConverter.cs
- NodeLabelEditEvent.cs
- ValidationResult.cs
- TraceHwndHost.cs
- RtType.cs
- XmlSortKeyAccumulator.cs
- DataGridViewRowsAddedEventArgs.cs
- BitConverter.cs
- CommandManager.cs
- ImportDesigner.xaml.cs
- ExpressionVisitorHelpers.cs
- FileStream.cs
- PeerResolverBindingElement.cs
- DeclaredTypeElement.cs
- InterleavedZipPartStream.cs
- Resources.Designer.cs
- LineUtil.cs
- Win32PrintDialog.cs
- SortDescriptionCollection.cs
- RootBrowserWindowProxy.cs
- HtmlInputSubmit.cs
- MenuItem.cs
- securitycriticaldataClass.cs
- FilterException.cs
- MetadataFile.cs
- FontSizeConverter.cs
- DynamicResourceExtensionConverter.cs
- TraceHandler.cs
- WebPartUtil.cs
- DefaultEvaluationContext.cs
- MessageQueuePermissionEntryCollection.cs
- InfoCardUIAgent.cs
- SamlSerializer.cs
- DescendantOverDescendantQuery.cs
- SystemResourceHost.cs
- TriggerActionCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- _Connection.cs