Re: Unicast UDP Server
- From: "O.B." <funkjunk@xxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 07:40:24 -0700 (PDT)
On Mar 27, 10:07 pm, "Peter Duniho" <NpOeStPe...@xxxxxxxxxxxxxxxx>
wrote:
On Thu, 27 Mar 2008 19:07:05 -0700, O.B. <funkj...@xxxxxxxxxxxxx> wrote:
I'm attempting to set up at UDP server in unicast mode, where
10.1.16.25 is the remote machine. Below is the error being thrown
when binding the socket. What am I doing wrong?
You're trying to bind your local socket to a remote address.
If you want to specify a remote address to be used as the default
destination for the UDP socket, use Connect(), not Bind().
But that would require the remote connection to be Bound to that port
to accept connections. Here is the dilemma. We have a user that has
other commercial software that is only capable of running their
sockets as client UDP broadcast connections on a fixed port. On our
end, the user wants the ability to open two UDP servers both on the
same port, but for each one to filter based on the IP that is sending
data. I was hoping that it would be possible to do this in the
connection setup rather than having our asynchronous receive callback
do the filtering.
With that said, what is the point of binding to a specific address if
it isn't allowed?
By the way...IMHO, you shouldn't be messing with the socket buffer sizes
unless you have already gotten everything else working, you know exactly
what you're doing, _and_ you have run into some problem that requires you
to change the default buffer sizes.
We started off with defaults and lost too many packets. 75 MB ended
up being a good number. Most of our machines are running with 4 GB or
more of memory, so it isn't an issue.
.
- Follow-Ups:
- Re: Unicast UDP Server
- From: Peter Duniho
- Re: Unicast UDP Server
- References:
- Unicast UDP Server
- From: O.B.
- Re: Unicast UDP Server
- From: Peter Duniho
- Unicast UDP Server
- Prev by Date: Re: break out of if
- Next by Date: DLLImport memory leaks?
- Previous by thread: Re: Unicast UDP Server
- Next by thread: Re: Unicast UDP Server
- Index(es):
Relevant Pages
|
Loading