[interfacekit] PortLink(NG)
- From: Pahtz <pahtz@xxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Thu, 6 May 2004 11:36:54 -0700 (PDT)
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
- Follow-Ups:
- [interfacekit] Re: PortLink(NG)
- From: Marcus Overhagen
- References:
- [interfacekit] Re: BSession(NG)
- From: Adi Oanca
Other related posts:
- » [interfacekit] PortLink(NG)
- » [interfacekit] Re: PortLink(NG)
- » [interfacekit] Re: PortLink(NG)
- » [interfacekit] Re: PortLink(NG)
- » [interfacekit] Re: PortLink(NG)
- [interfacekit] Re: PortLink(NG)
- From: Marcus Overhagen
- [interfacekit] Re: BSession(NG)
- From: Adi Oanca