History log of /haiku/src/kits/app/PortLink.cpp
Revision Date Author Comments
# c0eff345 17-Aug-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Remove unused PortLinkRef again.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 38d80987 17-Aug-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add PortLinkRef class which use a existing sender and receiver for communication. Suggestion for a better name?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38167 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec1bcf62 01-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added private methods get_app_server_port() (that stores the server port,
and doesn't have to find it every time), and create_desktop_connection() that
is now used from BApplication::_ConnectToServer() as well as the DesktopLink.
* Move PortLink::SetTo() into base class ServerLink.
* Eliminated duplicated member fReplyPort in DesktopLink.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1156138b 01-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

Removed unused files like PortMessage.cpp/h and Session.cpp/h.
Renamed LinkMsgReceiver.h and LinkMsgSender.h to LinkReceiver.h and LinkSender.h like
the classes they contain.
Split up PortLink.cpp/h into ServerLink.cpp/h and PortLink.cpp/h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14635 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd10337f 14-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader
to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the
BPrivate namespace.
Made AppServerLink a cheap object - it will use the applications receiver/sender
and not create its own buffers.
Fixed broken communication stuff here and there (mostly Font.cpp).
Put the newly introduced set|get_system_colors() into the BPrivate namespace -
please don't introduce private functions into the public namespace!!!
Also fixed their broken communication use, as Darkwyrm obviously forgot about
it again: the sequence Flush(); GetNextMessage() without error checking is
purely wrong and can make the app hang and/or crash! :-)
Other minor cleanup.
The input_server used some test mode with the haiku build target which is
probably wrong.
Hopefully I did not forget anything this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bd28b3c7 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

BAppServerLink is now using BApplication::fServerTo/From for its messaging.
Added LinkMsgReader::NeedsReply() method.
Completely redone ServerApp messaging: no more "replyport" from BAppServerLink; instead,
the registered client reply port is used. Fixed some more weak messaging stuff.
ServerApp now recognizes if an unknown message needs a reply, and sends it - for example,
the "Screen" preferences app no longer hangs, but crashes on start :)
Made LinkMsgReader::Read() virtual again, since it's needed by RAMLinkMsgReader.cpp.
Renamed BPortLink::GetNextReply() to GetNextMessage().
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13004 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75936a02 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

BPortLink now has a FlushWithReply() method itself.
BPortLink::AttachString() now accepts a length argument, and will no longer
send a terminating null byte; LinkMsgReader::ReadString(), however, will
make sure the string read is null terminated.
Changed client communication code to use FlushWithReply() instead of Flush()
and GetNextReply() - there were many bugs and shortcomings in the code, I
hope I've fixed them all.
Converted ClientFontList.cpp to our coding style (but not completely, the
class members are missing).
Some more cleanup - I hope Adi will adopt our coding style one day!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12998 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 750b92fa 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Almost rewrote LinkMsgSender; it's now much cleaner and works better:
- StartMessage() can now get a size to make sure there is enough free space
- if StartMessage() is called with the current message behind a certain
watermark, the buffer is flushed in order to prevent moving around messages
in the buffer. The actual value should be tested in real life, though.
- enlarged maximum buffer size to 64k
- fixed bug: could use memcpy() to move overlapping memory around
- added a flag to Flush() that marks messages as needing a reply - the other
way would be to mark the message "code" to contain this information

Some cleanup in LinkMsgReader.
BPortLink now has most methods as inlines.
The buffer sizes are now declared in a shared header, so that receiver and
sender are always equipped equally.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8829157f 29-Apr-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Moved headers around

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12512 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2da902f 01-Apr-2005 Michael Lotz <mmlr@mlotz.ch>

Implemented BPortLink::AttachShape and BPortLink::ReadShape and used them for passing the shapes in AS_GET_GLYPH_SHAPES.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12215 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27c5631f 22-Jan-2005 Adi Oanca <adioanca@nowhere.fake>

Added support for sending BRegions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10943 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2f63fb5 13-Oct-2004 DarkWyrm <darkwyrm@gmail.com>

Moved functionality of PortLink into LinkMsg* to avoid serious code duplication in the app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9335 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bceb8166 21-Aug-2004 DarkWyrm <darkwyrm@gmail.com>

Added a function to the BPortLink debugging code
Made a couple of style tweaks to BApplication::connect_to_app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8620 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ceb31b9 30-Jul-2004 DarkWyrm <darkwyrm@gmail.com>

Pahtz's changes from PortLink/BSession/PortMessage/PortQueue to BPortLink


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8519 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a663361 02-Jul-2004 DarkWyrm <darkwyrm@gmail.com>

Added a NULL pointer check. Eliminates a way to crash the app_server in just two keystrokes. :P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8285 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 768ec791 11-Jun-2004 DarkWyrm <darkwyrm@gmail.com>

Plugged a memory leak (thanks Matthijs!)
Removed the use of malloc() -- deprecated
Deprecated PortLink::FlushToSession()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7906 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e620294 15-Feb-2004 DarkWyrm <darkwyrm@gmail.com>

Reintegrated Bill Hayden's removal of malloc.h. Stupid me. :/


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6596 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 539232f2 11-Feb-2004 DarkWyrm <darkwyrm@gmail.com>

Removed a warning


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6561 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eca8c2bc 22-Jan-2004 haydentech <haydentech@nowhere.fake>

malloc.h is obsolete, use stdlib.h


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6231 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0591ec2 12-Jan-2004 Adi Oanca <adioanca@nowhere.fake>

added an new method to be able to port message sto a BSession handler


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6042 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f7420728 30-Dec-2003 haydentech <haydentech@nowhere.fake>

gcc 3 fix (no default args in implementation)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5840 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e4c9e21 13-Nov-2003 DarkWyrm <darkwyrm@gmail.com>

Attachment data bugfixes related to fDataSize


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 83f96471 13-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Updates to sync with (hopefully) final tweaks to messaging protocols
Implemented BSession::DropInputBuffer with code from Adi


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5013 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45799af7 04-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Tweaked all messaging classes to comply with new message protocol policies
AppServerLink no longer inherits from BSession
Modified client files which talk to the server to sync with changes in messaging classes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4942 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 591d280e 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Added PortMessage::ReadString and PortLink::AttachString to support BSession-style string attachments
Tweaks to startup code for BApplication
Tweaked PortQueue to utilize the BSession workaround for PortMessages
Tweaks to message protocol for BCursor


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8123b61c 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Eliminated a memory allocation bug
Added a sensible workaround for BSession message code packaging


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4937 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8b711a0 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

BSession no longer a parent class
Removed deprecated reply functions
Global protocol change - reply port attached last, not first
Still uses BSession-style messaging (msg code attached to buffer followed by attachement data)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae1338ef 31-Aug-2003 Adi Oanca <adioanca@nowhere.fake>

New PortLink implementation based on BSession


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4428 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78cc8d1a 11-Jul-2003 shadow303 <shadow303@nowhere.fake>

Fix templates for PortMessage & PortLink.
Update BApplication for changes to PortLink


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d1acc68a 10-Jul-2003 shadow303 <shadow303@nowhere.fake>

Templatize PortLink & PortMessage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3950 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bc6d6c5 04-Jul-2003 shadow303 <shadow303@nowhere.fake>

gcc 3 fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3845 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b76dd01 23-Jun-2003 DarkWyrm <darkwyrm@gmail.com>

Can get replies as PortMessages now


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3289882 21-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

Effectively made Attach(*,size) a const function


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71c04058 12-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

FlushWithReply(ReplyData *) checks for non-NULL buffers - eliminates a memory leak


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2902 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c51942ea 06-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

Removed fixed attachment limit


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2870 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe517480 19-Nov-2002 DarkWyrm <darkwyrm@gmail.com>

More testing and fixes. Removed an attachment bug.
Port capacity checking a compile-time option.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2018 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51c9c2f9 18-Nov-2002 DarkWyrm <darkwyrm@gmail.com>

Added new FlushWithReply method and some error checking. Mostly tested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2010 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d22950d 30-Sep-2002 DarkWyrm <darkwyrm@gmail.com>

API and stability improvements


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c0eff34541713b43786a31847ee186776f683a77 17-Aug-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Remove unused PortLinkRef again.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 38d80987f3256a22fb4e67d42a9efd286a199867 17-Aug-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add PortLinkRef class which use a existing sender and receiver for communication. Suggestion for a better name?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38167 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec1bcf6243a5d41c449c9914e2c26485d8ce943c 01-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added private methods get_app_server_port() (that stores the server port,
and doesn't have to find it every time), and create_desktop_connection() that
is now used from BApplication::_ConnectToServer() as well as the DesktopLink.
* Move PortLink::SetTo() into base class ServerLink.
* Eliminated duplicated member fReplyPort in DesktopLink.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1156138b2f9c9c85e0fe2538a1186d522d978d31 01-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

Removed unused files like PortMessage.cpp/h and Session.cpp/h.
Renamed LinkMsgReceiver.h and LinkMsgSender.h to LinkReceiver.h and LinkSender.h like
the classes they contain.
Split up PortLink.cpp/h into ServerLink.cpp/h and PortLink.cpp/h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14635 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd10337fd005a67a4947714fdeecf2121485b91d 14-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader
to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the
BPrivate namespace.
Made AppServerLink a cheap object - it will use the applications receiver/sender
and not create its own buffers.
Fixed broken communication stuff here and there (mostly Font.cpp).
Put the newly introduced set|get_system_colors() into the BPrivate namespace -
please don't introduce private functions into the public namespace!!!
Also fixed their broken communication use, as Darkwyrm obviously forgot about
it again: the sequence Flush(); GetNextMessage() without error checking is
purely wrong and can make the app hang and/or crash! :-)
Other minor cleanup.
The input_server used some test mode with the haiku build target which is
probably wrong.
Hopefully I did not forget anything this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bd28b3c7469be94f8c4dbecc3d2683d7960da4dd 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

BAppServerLink is now using BApplication::fServerTo/From for its messaging.
Added LinkMsgReader::NeedsReply() method.
Completely redone ServerApp messaging: no more "replyport" from BAppServerLink; instead,
the registered client reply port is used. Fixed some more weak messaging stuff.
ServerApp now recognizes if an unknown message needs a reply, and sends it - for example,
the "Screen" preferences app no longer hangs, but crashes on start :)
Made LinkMsgReader::Read() virtual again, since it's needed by RAMLinkMsgReader.cpp.
Renamed BPortLink::GetNextReply() to GetNextMessage().
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13004 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75936a02e432bb4ceb04494f0d53eb4d10ac7764 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

BPortLink now has a FlushWithReply() method itself.
BPortLink::AttachString() now accepts a length argument, and will no longer
send a terminating null byte; LinkMsgReader::ReadString(), however, will
make sure the string read is null terminated.
Changed client communication code to use FlushWithReply() instead of Flush()
and GetNextReply() - there were many bugs and shortcomings in the code, I
hope I've fixed them all.
Converted ClientFontList.cpp to our coding style (but not completely, the
class members are missing).
Some more cleanup - I hope Adi will adopt our coding style one day!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12998 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 750b92faf3e9563726535a99414a95b41d78dd99 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Almost rewrote LinkMsgSender; it's now much cleaner and works better:
- StartMessage() can now get a size to make sure there is enough free space
- if StartMessage() is called with the current message behind a certain
watermark, the buffer is flushed in order to prevent moving around messages
in the buffer. The actual value should be tested in real life, though.
- enlarged maximum buffer size to 64k
- fixed bug: could use memcpy() to move overlapping memory around
- added a flag to Flush() that marks messages as needing a reply - the other
way would be to mark the message "code" to contain this information

Some cleanup in LinkMsgReader.
BPortLink now has most methods as inlines.
The buffer sizes are now declared in a shared header, so that receiver and
sender are always equipped equally.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8829157fbfbeb5a7415ba4b97bae5f1c81409f14 29-Apr-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Moved headers around

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12512 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2da902f2e4736f49ce04a47d9db03bd81b70a57 01-Apr-2005 Michael Lotz <mmlr@mlotz.ch>

Implemented BPortLink::AttachShape and BPortLink::ReadShape and used them for passing the shapes in AS_GET_GLYPH_SHAPES.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12215 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27c5631fa3e6ed3d7e372b1e07ec73963d9360ba 22-Jan-2005 Adi Oanca <adioanca@nowhere.fake>

Added support for sending BRegions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10943 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2f63fb50d33a1e08f213a2a6696f34528b61a38 13-Oct-2004 DarkWyrm <darkwyrm@gmail.com>

Moved functionality of PortLink into LinkMsg* to avoid serious code duplication in the app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9335 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bceb8166d4d505b26ee1dc24bf62aebe1906dccb 21-Aug-2004 DarkWyrm <darkwyrm@gmail.com>

Added a function to the BPortLink debugging code
Made a couple of style tweaks to BApplication::connect_to_app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8620 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ceb31b96aefa3601ccc51e415da557b00155d4f 30-Jul-2004 DarkWyrm <darkwyrm@gmail.com>

Pahtz's changes from PortLink/BSession/PortMessage/PortQueue to BPortLink


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8519 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a663361f263f07528b153580d4dbafafb9f3be2 02-Jul-2004 DarkWyrm <darkwyrm@gmail.com>

Added a NULL pointer check. Eliminates a way to crash the app_server in just two keystrokes. :P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8285 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 768ec791c96c3b38803f441935dc637ef6aeed33 11-Jun-2004 DarkWyrm <darkwyrm@gmail.com>

Plugged a memory leak (thanks Matthijs!)
Removed the use of malloc() -- deprecated
Deprecated PortLink::FlushToSession()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7906 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e620294dd13eb908ceb0afc8a6e0b772869daf9 15-Feb-2004 DarkWyrm <darkwyrm@gmail.com>

Reintegrated Bill Hayden's removal of malloc.h. Stupid me. :/


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6596 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 539232f28eb2bed0ee74099c70b4197f9de3c12e 11-Feb-2004 DarkWyrm <darkwyrm@gmail.com>

Removed a warning


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6561 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eca8c2bc73ea00d9aea15b10459c123750f69482 22-Jan-2004 haydentech <haydentech@nowhere.fake>

malloc.h is obsolete, use stdlib.h


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6231 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0591ec20469dcaea98f2bb64d61a7b7c4c79a86 12-Jan-2004 Adi Oanca <adioanca@nowhere.fake>

added an new method to be able to port message sto a BSession handler


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6042 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f742072808ef997966837f2a18764e0aa1f14a63 30-Dec-2003 haydentech <haydentech@nowhere.fake>

gcc 3 fix (no default args in implementation)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5840 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e4c9e211311812c8e4ddb0878a1fdc6221a21e3 13-Nov-2003 DarkWyrm <darkwyrm@gmail.com>

Attachment data bugfixes related to fDataSize


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 83f964717308ec435e70cee998153e1968ca2511 13-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Updates to sync with (hopefully) final tweaks to messaging protocols
Implemented BSession::DropInputBuffer with code from Adi


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5013 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45799af7b5a1c99be09517235670c8975e95cb93 04-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Tweaked all messaging classes to comply with new message protocol policies
AppServerLink no longer inherits from BSession
Modified client files which talk to the server to sync with changes in messaging classes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4942 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 591d280e6c7b568f44375d13b8f0fdd33b8bd0eb 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Added PortMessage::ReadString and PortLink::AttachString to support BSession-style string attachments
Tweaks to startup code for BApplication
Tweaked PortQueue to utilize the BSession workaround for PortMessages
Tweaks to message protocol for BCursor


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8123b61c014b8d045008b4ce5b78f902bf8e2d1d 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

Eliminated a memory allocation bug
Added a sensible workaround for BSession message code packaging


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4937 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8b711a00d94dc2b2ade9b4c6eb260c50cacb3ab 03-Oct-2003 DarkWyrm <darkwyrm@gmail.com>

BSession no longer a parent class
Removed deprecated reply functions
Global protocol change - reply port attached last, not first
Still uses BSession-style messaging (msg code attached to buffer followed by attachement data)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae1338ef787da57ff4f51771e3fdc1365994c504 31-Aug-2003 Adi Oanca <adioanca@nowhere.fake>

New PortLink implementation based on BSession


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4428 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78cc8d1a5a66d2825908791f26a1bc0e50ce6030 11-Jul-2003 shadow303 <shadow303@nowhere.fake>

Fix templates for PortMessage & PortLink.
Update BApplication for changes to PortLink


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d1acc68a9d9d76725ad72dc3d77eed2ebe457aec 10-Jul-2003 shadow303 <shadow303@nowhere.fake>

Templatize PortLink & PortMessage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3950 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bc6d6c59a84213259bf4179c6296400a1e4cfe9 04-Jul-2003 shadow303 <shadow303@nowhere.fake>

gcc 3 fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3845 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b76dd01f5ba345fdc1f8e09b18efa6e1286e5cf 23-Jun-2003 DarkWyrm <darkwyrm@gmail.com>

Can get replies as PortMessages now


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c32898823020210fed7f419ca4f7d126678f8e3f 21-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

Effectively made Attach(*,size) a const function


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71c040584c3f3940c4135e136b0ee7790eb8f0a5 12-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

FlushWithReply(ReplyData *) checks for non-NULL buffers - eliminates a memory leak


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2902 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c51942ea6e1ff432132fbc39301f2c8b9edc1ace 06-Mar-2003 DarkWyrm <darkwyrm@gmail.com>

Removed fixed attachment limit


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2870 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe517480c3bcedc41a219e2312d6b6c5b157e09e 19-Nov-2002 DarkWyrm <darkwyrm@gmail.com>

More testing and fixes. Removed an attachment bug.
Port capacity checking a compile-time option.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2018 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51c9c2f980ddaae9c3eb4626910a143659dfd32e 18-Nov-2002 DarkWyrm <darkwyrm@gmail.com>

Added new FlushWithReply method and some error checking. Mostly tested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2010 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d22950d01ef49a7efff37c56edf3d6d6b72e891 30-Sep-2002 DarkWyrm <darkwyrm@gmail.com>

API and stability improvements


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96