• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Porting SimpleHTTPServer to CW/C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Porting SimpleHTTPServer to CW/C++


  • Subject: Porting SimpleHTTPServer to CW/C++
  • From: Terence Goggin <email@hidden>
  • Date: Fri, 14 Jun 2002 00:31:15 -0700

Hi all,

While porting some code (based on Quinn's SimpleHTTPServer) to
CodeWarrior/C++, I got 3 errors, all related to threads and
UPPs.

I suspect that they're related to my inclusion of some of the
HTTPServer functions as methods of a class, but this is just a
guess.

Has anyone ever had to deal with these before? If so, can you
help shed some light on this? I doubt I've got the experience
to know what to do next. (I've pasted the error text below,
if that helps.)

Thanks (as always!)

Terence

-------------------------------------------------------

Error : illegal explicit conversion from 'void' to
'pascal void * (*)(void *)'
ASNetwork.cp line 758 rocUPP = (ThreadEntryUPP)NewThreadEntryUPP((ThreadEntryProcPtr)WorkerThreadProc);

Error : illegal explicit conversion from 'void' to
'pascal void * (*)(void *)'
ASNetwork.cp line 881 ProcUPP = (ThreadEntryUPP)NewThreadEntryUPP((ThreadEntryProcPtr) HTTPServerProc);

Error : illegal explicit conversion from 'void' to
'pascal void (*)(void *, unsigned long, long, void *)'
ASNetwork.cp line 965 gYieldingNotifierUPP = NewOTNotifyUPP((OTNotifyProcPtr)YieldingNotifier);
_______________________________________________
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.
  • Prev by Date: Re: CC_OPT_GETMISCINFO status ???
  • Next by Date: Re: CC_OPT_GETMISCINFO status ??? solution !!!
  • Previous by thread: Re: Flood pings and memory leaks
  • Next by thread: RE: Porting SimpleHTTPServer to CW/C++
  • Index(es):
    • Date
    • Thread