Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / September 2004



Tip: Looking for answers? Try searching our database.

Simple socket programming

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tellme - 22 Sep 2004 21:07 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
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.