xref: /haiku/src/kits/app/PortLink.cpp (revision 4466b89c65970de4c7236ac87faa2bee4589f413)
1 /*
2  * Copyright 2005-2010, Haiku Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 
9 
10 #include <PortLink.h>
11 
12 
13 namespace BPrivate {
14 
15 
16 PortLink::PortLink(port_id send, port_id receive)
17 {
18 	fSender = new LinkSender(send);
19 	fReceiver = new LinkReceiver(receive);
20 }
21 
22 
23 PortLink::~PortLink()
24 {
25 	delete fReceiver;
26 	delete fSender;
27 }
28 
29 
30 }	// namespace BPrivate
31