On 30-03-2003 17:36, "Jason Essington" <jasone at GreenRiverComputing dot com>
wrote:
>> What about UDP? With an external UDP-class in RB 4.5 I was able to use
>> more than one socket on the same port. It doesn't seem to work in RB
>> 5...
> Technically it is not possible to bind multiple sockets to the same port
> on the same machine (who gets the packets?)
>
> with UDP you can bind the sockets to different ports then send the
> datagram from one port to the other simply by telling the datagram to
> which port it should go.
That was my thought too, but I write this great ;-) news-downloader that
does something I don't even understand myself: it communicates through port
119 on the same server in various sockets, and they do not mind at all.
So I have this window where a list of newsgroup names comes in, and another
window that is happily downloading pictures from the exact same server on
the same port.
Both, so the pictures and the list, come in with no errors.
How can this be?
I can understand in a web browser, because a web page carries a header with
information about the server you are talking to, so I can imagine having
various downloads at the same time, but in my news-program I was quite
surprised myself.
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.
|