Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Channels / UdpConstants.cs / 1484997 / UdpConstants.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Channels { using System; static class UdpConstants { // max is 64K - 20 (IP header) - 8(UDP header) - 1 (wraparound) public const int MaxMessageSizeOverIPv4 = 64 * 1024 - 20 - 8 - 1; public const int MaxTimeToLive = 255; public const int MinReceiveBufferSize = 1; public const int MinTimeToLive = 0; //localhost traffic only public const int PendingReceiveCountPerProcessor = 2; public const string Scheme = "soap.udp"; internal static class Defaults { public static readonly TimeSpan ReceiveTimeout = TimeSpan.FromMinutes(1); public static readonly TimeSpan SendTimeout = TimeSpan.FromMinutes(1); public const int DuplicateMessageHistoryLength = 0; public const int InterfaceIndex = -1; public const int MaxPendingMessageCount = 32; public const long MaxReceivedMessageSize = (long)UdpConstants.MaxMessageSizeOverIPv4; public const int SocketReceiveBufferSize = 64 * 1024; public const int TimeToLive = 1; public static MessageEncoderFactory MessageEncoderFactory = new TextMessageEncodingBindingElement().CreateMessageEncoderFactory(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- __FastResourceComparer.cs
- WorkflowQueueInfo.cs
- HtmlGenericControl.cs
- SmtpException.cs
- Matrix3DStack.cs
- IItemProperties.cs
- ComponentResourceManager.cs
- EntityDataSourceDataSelectionPanel.cs
- RenderDataDrawingContext.cs
- WebPartCollection.cs
- Parameter.cs
- ReadOnlyAttribute.cs
- ResourceProviderFactory.cs
- WinInetCache.cs
- TransportOutputChannel.cs
- PropertyItem.cs
- LinkLabelLinkClickedEvent.cs
- SchemaElementLookUpTableEnumerator.cs
- DependencySource.cs
- SocketCache.cs
- QilTypeChecker.cs
- SessionEndingCancelEventArgs.cs
- Property.cs
- BehaviorDragDropEventArgs.cs
- UnmanagedBitmapWrapper.cs
- UnhandledExceptionEventArgs.cs
- Currency.cs
- InputScopeNameConverter.cs
- HttpModuleActionCollection.cs
- XmlJsonReader.cs
- CompilerLocalReference.cs
- CancellationHandlerDesigner.cs
- DbTransaction.cs
- WorkflowRuntimeServicesBehavior.cs
- LocalBuilder.cs
- WebBrowserBase.cs
- SqlTypeConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- CommandHelper.cs
- Application.cs
- CodeNamespaceImport.cs
- HandlerFactoryCache.cs
- HttpWebResponse.cs
- XPathNodeIterator.cs
- SHA512Managed.cs
- OwnerDrawPropertyBag.cs
- ValidatorUtils.cs
- DispatcherExceptionFilterEventArgs.cs
- BaseAddressElementCollection.cs
- XmlSchemaSet.cs
- DataRowExtensions.cs
- ReadOnlyDictionary.cs
- XamlVector3DCollectionSerializer.cs
- Message.cs
- SpecialTypeDataContract.cs
- TripleDESCryptoServiceProvider.cs
- IntSecurity.cs
- OleDbSchemaGuid.cs
- KeyManager.cs
- CLSCompliantAttribute.cs
- TdsParserSessionPool.cs
- _DynamicWinsockMethods.cs
- WebPartConnectionsCloseVerb.cs
- PathFigure.cs
- HttpRuntimeSection.cs
- CellTreeSimplifier.cs
- IOException.cs
- OdbcConnectionPoolProviderInfo.cs
- ControlParameter.cs
- OptionalMessageQuery.cs
- PingOptions.cs
- LingerOption.cs
- EventWaitHandle.cs
- SafeRightsManagementSessionHandle.cs
- BitmapDecoder.cs
- Link.cs
- MembershipValidatePasswordEventArgs.cs
- EditCommandColumn.cs
- RuntimeHelpers.cs
- InvokeMethodActivity.cs
- GatewayIPAddressInformationCollection.cs
- TdsParserStateObject.cs
- MetadataItemEmitter.cs
- WmiEventSink.cs
- PrintDialog.cs
- DefaultClaimSet.cs
- COM2Enum.cs
- ConsoleCancelEventArgs.cs
- xsdvalidator.cs
- MemoryRecordBuffer.cs
- UnionCodeGroup.cs
- VirtualDirectoryMapping.cs
- ImageConverter.cs
- StringBuilder.cs
- OdbcDataAdapter.cs
- OleDbReferenceCollection.cs
- XmlSchemaAnyAttribute.cs
- DataBindingCollection.cs
- Clause.cs
- SinglePhaseEnlistment.cs