OT & Carbon issues
OT & Carbon issues
- Subject: OT & Carbon issues
- From: Scott Ribe <email@hidden>
- Date: Tue, 07 May 2002 07:13:07 -0600
- Resent-date: Tue, 07 May 2002 07:22:26 -0600
- Resent-from: Scott Ribe <email@hidden>
- Resent-message-id: <B8FD2F03.130AB%email@hidden>
- Resent-to: <email@hidden>
Is there any more documentation on what/how Open Transport works with
Carbon? I'm going through the reference and the sample code, and have hit a
couple of snags in just the first day. I'm using the OTSimpleServerHTTP.c
example for guidance. I'm working in CW 7.2. Here's the problems so far:
- Open an endpoint, set it to reuse the IP address, set blocking, set
synchronous, install notifier, set use sync idle events to true, then bind.
Under Classic this runs fine, under OS X the call to bind never returns--the
installed notifier is constantly called with sync idle events. The port
doesn't seem to matter; I've tried various ranges. Moving the set use sync
idle events to after the bind makes it work. Easy workaround, but it took
hours for me to stumble onto it--is there any documentation anywhere that
would have made this easier?
- Run the client & server on the same computer. Run both under OS X and
everything works. Run the server under OS X and the client under Classic,
and the server never returns from OTListen. (I haven't bothered to see what
happens in the client, error or no return.) It doesn't matter if the client
tries to connect to 127.0.0.1 or the server's actual IP address. If the
client is run under Classic on a different computer, it works fine. This is
only an inconvenience for testing--the server will always be running on an
OS X Mac, and the client does not ever need to be run on the server. But is
this problem known? Documented? Is there a workaround?
Any pointers or comments will be welcome. FYI what I'm doing right now is
mostly buying time. The customer is stuck running OS 9 on clients for a
while longer because of legacy issues, thus I have to deal with Open
Transport on the client side, so I thought that by doing a *simple* OT
server I could manage my learning curve a little. Later we will dump OS 9
and go to a pure OS X implementation, maybe based on Cocoa, maybe using the
ACE toolkit.
BTW, if you respond more than 24 hours from now and I don't reply, I'm not
being rude--I'll just be out of the country on vacation and your reply might
not pass the strict filters required to get forwarded to my Hotmail account.
I will receive (and appreciate) all replies--but maybe not right away.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
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.