Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: UDP vs TCP

  1. #1
    Junior Member joan_fl's Avatar
    Join Date
    May 2002
    Location
    Tampa, FL
    Posts
    9
    Member #
    95
    Can someone give me the differences? Why use one and not the other?

    Thanks,

    Joan

  2.  

  3. #2
    Junior Member DefaultEd's Avatar
    Join Date
    Apr 2002
    Posts
    5
    Member #
    69
    From MSDN:

    Selecting a Protocol

    When using the WinSock control, the first consideration is whether to use the TCP or the UDP protocol. The major difference between the two lies in their connection state:

    The TCP protocol control is a connection-based protocol, and is analogous to a telephone the user must establish a connection before proceeding.


    The UDP protocol is a connectionless protocol, and the transaction between two computers is like passing a note: a message is sent from one computer to another, but there is no explicit connection between the two. Additionally, the maximum data size of individual sends is determined by the network.
    The nature of the application you are creating will generally determine which protocol you select. Here are a few questions that may help you select the appropriate protocol:

    Will the application require acknowledgment from the server or client when data is sent or received? If so, the TCP protocol requires an explicit connection before sending or receiving data.


    Will the data be extremely large (such as image or sound files)? Once a connection has been made, the TCP protocol maintains the connection and ensures the integrity of the data. This connection, however, uses more computing resources, making it more "expensive."


    Will the data be sent intermittently, or in one session? For example, if you are creating an application that notifies specific computers when certain tasks have completed, the UDP protocol may be more appropriate. The UDP protocol is also more suited for sending small amounts of data.

  4. #3
    Junior Member joan_fl's Avatar
    Join Date
    May 2002
    Location
    Tampa, FL
    Posts
    9
    Member #
    95
    Thanks! I appreciate the help!

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Also put shortly, as I understand it TCP for each packet that is sent confirmation is sent by the receiver that it got the packet. UDP is just sending the packet and that's it.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com