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 / May 2007



Tip: Looking for answers? Try searching our database.

does DO go both ways?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wizumwalt@gmail.com - 24 May 2007 02:56 GMT
I've got my communications across DO working and have been able to
pass large arrays from a *.dylib in C++ across. I'm just having a
blast with it.

So now Im wondering if it should be any problem that if I want my
thread to talk back to my server, is that ok? Or do I need to start
another connection going the other way? I'm thinking that if my server
connection hasn't been invalidated yet, it should still be good.

I want to do this so I can update my UI to show progress.

Comments, advice, suggestions, much appreciated.
Wizumwalt@gmail.com - 25 May 2007 04:53 GMT
Or does anyone know of any example source where DO communicates both
ways between two threads?

I've got one way working, but can't updated my UI from the worker
thread.

Any help much appreciated.
Patrick Machielse - 25 May 2007 10:46 GMT
> So now Im wondering if it should be any problem that if I want my
> thread to talk back to my server, is that ok? Or do I need to start
> another connection going the other way? I'm thinking that if my server
> connection hasn't been invalidated yet, it should still be good.

Yes, you can just pass 'self' when messaging the remote process /
thread, and the receiver can use that reference / proxy to call back, as
long as the connection is valid. If the receiver never needs to initiate
a connection, there is no need to vend 'self', although you still could,
of course.

patrick
 
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.