Click here to Skip to main content
15,881,740 members
Articles / Desktop Programming / WPF

A WCF-WPF Chat Application

Rate me:
Please Sign up or sign in to vote.
4.90/5 (120 votes)
15 Apr 2008CPOL11 min read 497.2K   31.8K   260  
An Internet chat application with file transfer.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <bindings>
            <netTcpBinding>
                <binding name="NetTcpBinding_IChat" closeTimeout="00:01:00" openTimeout="00:01:00"
                    receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
                    transferMode="Buffered" transactionProtocol="OleTransactions"
                    hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                    maxBufferPoolSize="67108864" maxBufferSize="67108864" maxConnections="100"
                    maxReceivedMessageSize="67108864">
                    <readerQuotas maxDepth="32" maxStringContentLength="67108864" maxArrayLength="67108864"
                        maxBytesPerRead="67108864" maxNameTableCharCount="16384" />
                    <reliableSession ordered="true" inactivityTimeout="20:00:10"
                        enabled="true" />
                    <security mode="None">
                        <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
                        <message clientCredentialType="Windows" />
                    </security>
                </binding>
            </netTcpBinding>
        </bindings>
        <client>
            <endpoint address="net.tcp://localhost:7997/WPFHost/tcp" binding="netTcpBinding"
                bindingConfiguration="NetTcpBinding_IChat" contract="SVC.IChat"
                name="NetTcpBinding_IChat" />
        </client>
    </system.serviceModel>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer Business Development Gate
Egypt Egypt

Comments and Discussions