OTListen in OS 9
OTListen in OS 9
- Subject: OTListen in OS 9
- From: Lyndsey Ferguson <email@hidden>
- Date: Thu, 01 May 2003 15:12:21 -0400
Hello All,
I'm trying to debug a problem with OpenTransport.
Here are the details:
My app in OS X is waiting for a UDP packet using OTRcvUData (actually OTMP's
OTMPXRcvUData). When it receives the data (which is a port number) it calls
OTConnect (OTMPXConnect).
In OS 9.2.2, my client sends out a UDP packet broadcast using OTMPXSndUData
to the broadcast address. Following the broadcast, I issue a call to
OTListen (OTMPXListen), when a response arrives, I create a endpoint that
accepts that connection and process the data (OTMPXAcceptQ).
The problem:
--
On my OS X machine, using tcpdump, I can see the message get to the machine,
and I also see my Mac OS X machine respond with a bunch of acknowledgements,
but on the OS 9 machine, sometimes (not often) the OTListen call never
returns, like it is not processing the data within my timeout time. (I have
a thread that will close the OS 9's client endpoint after a certain timeout,
which is set to a high value of 9 seconds (when it works it works very
quickly)).
--
Some more details. As I am using OTMP, I am using preemptive multithreads.
Because I am trying to mirror the windows code base, the server is on a
thread that has a slightly lower priority than default. But the problem
seems to be on the client side as tcpdump is reporting that the OS X machine
is sending data back and getting acknowledgements.
Here is a sample of the tcpdump. It is set to monitor ports 6020 to 6029 and
a dst (destination address) of 192.168.0.70
:
12:30:04.020874 192.168.0.73.49517 > 192.168.0.70.50454: S
4165120739:4165120739(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp
3062261925 0> (DF)
12:30:04.021454 192.168.0.73.49517 > 192.168.0.70.50454: . ack 2150715765
win 33304 <nop,nop,timestamp 3062261925 12783476> (DF)
12:30:04.021684 192.168.0.73.49517 > 192.168.0.70.50454: P 0:43(43) ack 1
win 33304 <nop,nop,timestamp 3062261925 12783476> (DF)
12:30:04.021794 192.168.0.73.49517 > 192.168.0.70.50454: F 43:43(0) ack 1
win 33304 <nop,nop,timestamp 3062261925 12783476> (DF)
It looks like the OS X machine is successfully talking to the OS 9 machine
(.73 is OS X, .70 is OS 9)
Does anyone have any suggestions as to why information is being sent to the
a machine and OTListen does not respond?
Thanks very much in advance,
Lyndey Ferguson
_______________________________________________
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.