Export (0) Print
Expand All

<tcpTransport>

Defines a TCP transport that can be used by a channel to transfers messages for a custom binding.


<tcpTransport 
    listenBacklog="Integer"
        portSharingEnabled="Boolean"
    teredoEnabled="Boolean"
    transferMode=”Buffered/Streamed”
        <connectionPoolSettings
          groupName=”String”
        idleTimeout"TimeSpan"
        leaseTimeout="TimeSpan"
        maxOutboundConnectionsPerEndpopint=”Integer” />
/>

The following sections describe attributes, child elements, and parent elements.

Attributes

 

Attribute Description

channelInitializationTimeout

The maximum time a channel can be in the initialization state before being disconnected in seconds. This quota includes the time a TCP connection can take to authenticate itself using the .Net Message Framing protocol. A client needs to send some initial data before the server has enough information to perform authentication. The default is 30 seconds.

listenBacklog

The maximum number of queued connection requests that can be pending for a Web service. The connectionLeaseTimeout attribute limits the duration the client will wait to be connected before throwing a connection exception. This is a socket level property which controls the maximum number of queued connection requests that can be pending for a Web service. When ListenBacklog is too low, WCF will stop accepting requests and therefore drop new connections until the server acknowledges some of the existing queued connections .The default is 16 * number of processors.

portSharingEnabled

A Boolean value that specifies if TCP port sharing is enabled for this connection. If this is false, each binding will use its own exclusive port. The default is false.

This setting is relevant only to services. Clients are not affected.

Using this setting requires enabling the Windows Communication Foundation (WCF) TCP Port Sharing Service by changing its Startup Type to Manual or Automatic

teredoEnabled

A Boolean value that specifies whether Teredo (a technology for addressing clients that are behind firewalls) is enabled. The default is false.

This property enables Teredo for the underlying TCP socket. For more information, see Teredo Overview.

This property is applicable only on Windows XP SP2 and Windows Server 2003. Windows Vista has a machine-wide configuration option for Teredo, so when running Vista, this property is ignored. Teredo requires that the client and service machines both have the Microsoft IPv6 stack installed and correctly configured for Teredo usage. For more information about configuring Teredo, see Teredo Overview. For more information, see Windows Server 2003 Technology Centers.

Child Elements

None

Parent Elements

 

Element Description

<binding>

Defines all binding capabilities of the custom binding.

This transport uses URIs of the form "net.tcp://hostname:port/path". Other URI components are optional.

The tcpTransport element is the starting point for creating a custom binding that implements the TCP transport protocol. This transport is optimized for WCF-to-WCF communication.




Build Date:

2012-08-02

Community Additions

ADD
Show:
© 2015 Microsoft