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
- SystemColorTracker.cs
- GregorianCalendarHelper.cs
- ProfileProvider.cs
- SystemIPv4InterfaceProperties.cs
- _IPv6Address.cs
- CoreChannel.cs
- CommandPlan.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DispatchChannelSink.cs
- BitmapEffectRenderDataResource.cs
- TextTreeUndo.cs
- GB18030Encoding.cs
- RootNamespaceAttribute.cs
- DefaultValidator.cs
- WindowsTooltip.cs
- _LocalDataStoreMgr.cs
- DispatcherExceptionFilterEventArgs.cs
- UpdateTranslator.cs
- ConnectionStringsExpressionBuilder.cs
- SoapEnumAttribute.cs
- EdmScalarPropertyAttribute.cs
- MissingMethodException.cs
- IDataContractSurrogate.cs
- TextClipboardData.cs
- TransformDescriptor.cs
- SafeCryptoKeyHandle.cs
- Int32Rect.cs
- XPathConvert.cs
- ProcessProtocolHandler.cs
- StatusBarAutomationPeer.cs
- MaterialGroup.cs
- FocusManager.cs
- ToolStripGrip.cs
- ComponentDesigner.cs
- ChangeDirector.cs
- AuthenticationService.cs
- QueryableDataSourceHelper.cs
- LogFlushAsyncResult.cs
- ColumnWidthChangedEvent.cs
- JavaScriptObjectDeserializer.cs
- CommandTreeTypeHelper.cs
- SortableBindingList.cs
- SqlCommand.cs
- WindowsEditBox.cs
- XmlException.cs
- SecurityUniqueId.cs
- PersistChildrenAttribute.cs
- HttpApplicationStateBase.cs
- HttpPostLocalhostServerProtocol.cs
- DefaultSerializationProviderAttribute.cs
- RecognizerInfo.cs
- DataConnectionHelper.cs
- InvalidEnumArgumentException.cs
- GridViewSortEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- ThumbAutomationPeer.cs
- BamlRecordWriter.cs
- AnnotationObservableCollection.cs
- NativeMethods.cs
- CommandSet.cs
- COM2EnumConverter.cs
- AttachedAnnotation.cs
- ConfigPathUtility.cs
- DetailsView.cs
- Point4DConverter.cs
- FormsAuthenticationUser.cs
- Propagator.JoinPropagator.cs
- HtmlTableCell.cs
- PropertyPathWorker.cs
- Empty.cs
- IisTraceListener.cs
- CallContext.cs
- BoundPropertyEntry.cs
- PreProcessInputEventArgs.cs
- QilPatternFactory.cs
- BitVec.cs
- UIElementAutomationPeer.cs
- HttpPostedFileWrapper.cs
- CharAnimationUsingKeyFrames.cs
- MessageDecoder.cs
- ReplyChannelAcceptor.cs
- WindowsClientElement.cs
- ToolStripProgressBar.cs
- DbgUtil.cs
- AuthenticationSection.cs
- XmlSchemaDocumentation.cs
- CodeArgumentReferenceExpression.cs
- Avt.cs
- OdbcTransaction.cs
- Normalizer.cs
- basenumberconverter.cs
- log.cs
- ObjectItemCollection.cs
- HostedHttpRequestAsyncResult.cs
- FlowPanelDesigner.cs
- ExpressionNormalizer.cs
- DictionaryTraceRecord.cs
- OleDbWrapper.cs
- ServiceOperationInfoTypeConverter.cs
- HttpAsyncResult.cs