We want to implement simple socket input in our software. We want to
listen to a port for incoming connection and receive an XML file, do
some processing, return an response code, and listen to the next
request. We want to use a minimalistic approach, so we are not sure
what to use PowerPlant, OT, or the OS X framework (which does not have
socket read() ? ). Also the socket code should not break our OS9
compatibily. Our application is Carbon/PP.
Any advice would be appreciated.
David Phillip Oster - 23 Sep 2004 05:30 GMT
> We want to implement simple socket input in our software. We want to
> listen to a port for incoming connection and receive an XML file, do
[quoted text clipped - 3 lines]
> socket read() ? ). Also the socket code should not break our OS9
> compatibily. Our application is Carbon/PP.
If you want OS X/OS 9 compatibility, use the PowerPlant internet
classes. Look at the SimpleServer PowerPlant example.
MacPorter - 28 Sep 2004 08:37 GMT
> We want to implement simple socket input in our software. We want to
> listen to a port for incoming connection and receive an XML file, do
[quoted text clipped - 5 lines]
>
> Any advice would be appreciated.
Hi,
I'm porting OS9 app to OSX using OT because it was the only available
IP API on OS9 but for some reason it is not allowing many connection
at the same time (especially with Oracle DB through ODBC) so I'm using
BSD's sockets that are standard UNIX sockets using send() and recv()
instead of read() and write().
But since the app is Carbon compliant I had to include BSD's sockets
calls into a Mach-O bundle and load it in my Carbon app that had to
become a simple app instead of a bundle app to be able to locate the
bundle correctly.
Hope this helps.
Regards, MacPorter.