System.Net.Sockets.TcpClient Class
Information   Base Types   Related Resources

Provides client connections for TCP network services.

  • Namespace: System.Net.Sockets
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.1.4322
  • Assembly: System.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (27)Discussions (349)MembersRotorChanges
    Articles

    Page: 12
    A POP3 Client and C#
    C#Today
    In this article, Levent Camlibel looks at how to create a POP3 client that recieves e-mail from a POP3 server, showing how the .NET platform allows this project to be created in a very short space of time. Over the course of the article, he looks at POP3 standards, .NET network programming, and custom POP3 objects.
    A Simple .NET TCP Socket Component
    The Code Project
    Reusable C# code for client-server programming in .NET
    A Suite of Cryptographic Objects Part 2: Implementing Key Exchange Over a Network
    C#Today
    Throughout the whole history of Cryptography one element has continually created the most difficulty: Key Exchange. In this article, Richard Conway looks at the idea and implementation of Key Exchange over a network, bringing together the elements that we have discussed so far in the previous article (with respect to symmetric key cryptography) and also introduces concepts of public key cryptography. We demonstrate the use of this by creating a secure chat application.
    C# Socket Programming
    C# Help
    This is a simple example of socket programming using TCPListener and TCP client. Compile and run the server and client programs after the changing the IP addresses in the programs to the machine from which the server is going to run.
    Create a DotNet TCP/IP Client Class Using Asynchronous Delegates
    STANDARDIO.ORG
    In this article, I will demonstrate how manage a DotNet client connection to a TCPIP address and port. All of the necessary components are located under the System.Net.Sockets namespace. We will use the TCPClient and NetworkStream classes to accomplish the task.
    Creating a Multi-User TCP Chat Application
    MSDN
    The .NET support for socket-based programming within Visual Basic is dramatically improved over what we had in Visual Basic 6. So even though we approach the programming issue somewhat differently, it is worth it due to all the new capabilities at our disposal.
    Email Notifier
    C# Corner
    Email notifier is TCP/IP application that notifies the user if there is email in the user's email server. This application checks email in default time interval of 5 minutes. You can change it with configure menu. This application is a tray application.
    Introduction to TCP client server in C#
    The Code Project
    This is a simple implementation of a TCP client server relationship.
    Multi-threaded TCP/UDP Server and Client v2
    C# Help
    This is the second version of my client/server program. The server and the client can be run on the same machine or on different machines. The following is the brief description of the server and the client programs specifically.
    Multithreaded TCP/UDP Client Server v.1
    C# Help
    The Server: The simple multi-threaded TCP/UDP Server v1 provides a TCP and UDP servers running at separate threads. The sockets can receive a text messages send frm the client machine, and return a confirmation together with the received text back to the client. It uses the traditional socket programming methods (socket/bind/listen/accept). In the v2 of this program, I will make use if the .Net library's TcpListener that will make things much easier.
    Multithreading in Web Applications: Part II - Port Scanner
    C# Corner
    In this article, I will demonstrate how you can use threads to create a web based port scanner in ASP.NET.
    NatMonitor PocketPC Text client
    The Code Project
    This is a client for NatMonitor daemon
    Networking Support Provided by the .NET Framework
    C#Today
    The .NET Framework provides a wide range of excellent features that developers can take advantage in building networking applications. The System.Net classes are similar to Microsoft's WinInet API (used for internet protocol programming), in that they allow applications to get and send data using Internet protocols.
    Peer-to-Peer
    C# Help
    The P2P concept generally consists of a central Index server. This server does not contain any files, physically. It only maintains the information about the users who are logged on to the network, the IP address of the client and the list of files shared at any given moment by a user. The client and the server communicate with each other over a socket connection using simple commands.
    Picture Chat using C#
    The Code Project
    Chat program that support unicode inputs and picture transfer
    POP3 Client as a C# Class
    The Code Project
    After reading Agus Kurniawan's article on using C# to communicate with a POP3 server I decided that I'd get a lot more milage if I built up a class that would act as a POP3 client. I decided to implement methods for each of the standard POP3 commands, with each method returning a string containing the response of the POP3 server (where appropriate.) In some situations the command is not valid so the methods detect this and returns an error message rather then sending the command to the server. The source code accompanying this article contains the class definitions and the demo console application (shown above) shows how to use the class to retrieve from a POP3 mail server.
    POP3 Email
    http://aspalliance.com/
    Wouldn’t it be useful to be able to check your mail from a web browser? Here we look at how to write such a utility using the TcpClient class. Start from simply logging on to more complex issues like reading and deleting messages.
    Read POP3 Email with ASP.NET
    ASP Alliance
    Just recently I was sent an email with attachments totalling 28mb to my home dialup email account. While I was telnetting into my account to delete the offending email I was inspired to write this article showing how you might do the same thing in code!
    Real Time TCP/IP using C#
    The Code Project
    The Real time Application is a sample that shows the communication techniques between a client (TcpClient) and a server (TcpServer) application using Socket class on each side. The project also demonstrates how to using listview control in the real time project.
    SMTP Email Client
    C# Help
    This is a web based smtp email program. This program can be used to send a email through a SMTP server. User can specify SMTP server IP, sender's mail address, recipient's email address and mail content. When the user clicks on "send mail" button , mail is forwarded to SMTP server which in turn forwards the mail to recepient.
    TabletPC 1.0 Advanced Remote Control
    The Code Project
    TabletPC turns your PocketPC into a tablet input device for your workstation or laptop. It can be used as a mouse or a keyboard. It has a friendly intuitive interface.
    TCP Date Time Client/Server
    Master C#
    This is the implementation of "System.Net.Sockets". In this example we will learn how to use the "TCPListener" and "TCPClient" classes from the "System.Net.Sockets" namespace.
    Tracing for Compact Framework apps
    The Code Project
    This article proposes a solution that mitigates the lack of debug console, when building Compact Framework-based Pocket PC apps.
    VB.NET TCP Client - Server Socket Communications
    Egg Head Cafe
    Here's a sample TCP Client and associated server "listener" to illustrate how easy socket programming has become in .NET. I'm keeping this synchronous and very basic; the idea is you have a client that accepts an input message, makes a connection to the listener on a specific address and port, sends the message, and retrieves the response. The sockets are then closed. These are console apps so you can easily see what's going back and forth, but it is trivial to compile the client code into a class library to allow multithreaded socket messaging even from ASPX pages, assuming that a listener exists that is equipped to handle the incoming requests correctly without serializing them.
    WHOIS Search
    World of .NET
    Quite often you want toknow who owns a given domain. To obtain the registry information, you go to therespective registry and start a so called WHOIS query (lookup). The trick isthat you have to know which registry is responsible for which TLD (Top LevelDomain). The following example is a minimal implementation of a WHOIS lookup.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com