RE: Stops Receiving UDP Packets
RE: Stops Receiving UDP Packets
- Subject: RE: Stops Receiving UDP Packets
- From: Kirk Haynes <email@hidden>
- Date: Thu, 21 Mar 2002 15:58:37 -0500
Problem 1 Update.
I think that OpenTransport is running out of memory. I'm getting the
kOTOutOfMemmoryErr when calling OTSndUData, which happens just before the
server stops receiving packets. To keep from getting this error, if
possible, where would I allocate more memory; By using an OT memory
allocation call, by giving the application more memory?
Will I receive this error regardless of how much memory I have, no matter
where it's allocated, if I'm flooding the server endpoint with UDP packets
faster than it can respond, because OT is attempting to store all incomming
packets?
>
I'm working on OpenTransport networking code and I have two unresolved
>
problems using UDP endpoints.
>
>
1) I open up a 'server' async UDP endpiont on the 'server' machine, and
>
start opening several 'client' UDP endpoints on the client machine. The
>
clients each send roughly 1 K of data per packet to the server endpiont,
>
roughly 60 times per second (about 62 K/sec). The 'server' UDP endpoint can
>
handle 1 - 5 of these clients packets, but once it starts receiving more
>
than a total of 350 to 400 K/sec of data, the server endpoint stops
>
receiving the UDP packets from the clients. There are no errors on the
>
server endpoint that I can see.. (at least I don't think I'm receiving an
>
error related to the server endpoint no longer receiving packets. it is
>
possible that an error is coming in and it's getting overlooked, but I
don't
>
think so)
>
>
Please respond if you
>
>
a) have encountered this problem, or
>
b) know what the problem is, or
>
c) know how to fix or work around the problem
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.