[interfacekit] PortLink(NG)

Ok, I just typed this into vi. I haven't compiled it a single time.

I rewrote PortLink as a merge of PortLink, PortMessage, and BSession 
functionality.

PortMessage will have to modified slightly for consistency. PortQueue should 
also end up using
PortLink(NG) internally.

Attached: PortLink.h PortLink.cpp

You will see buffers are reused, but will be dynamically resized if a big 
whopping message comes
along. Perhaps something should be added to shrink the buffers after a while.

I actually read the dynamic resizing debate but I don't think it ended in 
agreement. I will read
it again.

But as Axel just said, port_write() is slow, so it's better to port_write() a 
big chunk in one go
instead of streaming little packets. I dynamically resize to fit large messages 
in one go instead
of multipart'ing it.

Cheers,
Paul.



        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

Other related posts: