Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Re: Message sending

www.cryer.info
Managed Newsgroup Archive

Re: Message sending

Subject:Re: Message sending
Posted by:"Jamie Dale" (j.da..@turboz.net)
Date:Sat, 30 Sep 2006 21:55:16

Transmission Control Protocol.
It is basically used for direct connections to and from a TCP server. TCP
also guarantees that each data packet will reach it's destination whereas
UDP does not.

UDP is good for broadcasting data - IE realmedia, sound etc, but is not
generally good for control communications etc.

For what you are building, it sounds like TCP is much more what you need to
be using. UDP is kind of like analogue radio. It is broadcasted, but
receiving it can be somewhat hard.

TCP is similar to digital/morse code. You receive it because the receiver
differentiates between 0's and 1's making errors or confusion extremely
unlikely.

TCP is also a slower protocol. It's time and resource consuming because of
it's complexity and processing requirements. UDP on the other hand doesn't
need a lot of resources as it basically just broadcasts without caring about
the end result.

I don't know what components you are using for your current UDP, but you
should look into Indy sockets or ICS (I think it's called). Indy is very
good but can be rather hard to get installed at the moment because the
latest version is also the live version - meaning that the team work on the
very same files downloaded from the server.

Remy would probably have a much better and precise explanation than me....

Jamie.


"Richard Bibby" <richardjbibby@hotmail.com> wrote in message
news:451e6467$1@newsgroups.borland.com...
> can  you explain a bit more?
> "Jamie Dale" <j.dale@turboz.net> skrev i meddelandet
> news:451da9ad@newsgroups.borland.com...
>> Why not use TCP?
>>
>>
>> "Richard Bibby" <richardjbibby@hotmail.com> wrote in message
>> news:451c35ef@newsgroups.borland.com...
>>> Hej,
>>>
>>> I have introduced a messaging system where my application can send me
>>> information about exceptions etc.  When I say me I mean our web server
>>> in the office.
>>>
>>> I want to keep overheads low for the application, so currently I am
>>> using UDP on port 60. The sending of the message occurs in a seperate
>>> thread. It works!
>>>
>>> However I am not sure what protocol should I use. UDP or HTTP?
>>>
>>> What port should I use?
>>>
>>> However I have discovered that many networks do not let traffic out on
>>> UDP port 60 so the messages never arrive.
>>>
>>> So should I use HTTP on port 80?
>>>
>>> /Richard

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive