haiku/headers
Michael Lotz dcc56bf748 BNetEndpoint: Fix socket leak and reduce Accept() overhead.
When using the copy constructor of BNetEndpoint the socket of the
original endpoint gets dup'ed. The Accept() method later directly reset
the fSocket member of the newly created BNetEndpoint to the socket
returned by accept(). The socket dup'ed by the copy constructor was
therefore leaked.

Of course dup'ing the socket and copying the local and remote addresses
is superfluous in the accept case, as these members all get set to new
values. To reduce that overhead there is now a new private constructor
that directly gets the final socket and remote and local address.
2013-11-24 22:36:29 +01:00
..
build mimeset: Use TextSnifferAddon when using a custom MIME DB 2013-11-22 12:24:13 +01:00
compatibility Drop "protected"-define from bsd-compatibility header 2012-11-05 09:37:55 +01:00
config Merge branch 'master' into x86_64 2012-08-16 21:11:15 +01:00
cpp Allow use of c_str() on wstring. 2012-10-27 17:14:55 +02:00
glibc Make public glibc header printf.h usable. 2013-07-17 18:07:56 +02:00
libs Merge remote-tracking branch 'haiku/master' into package-management 2013-07-08 14:01:00 +02:00
os BNetEndpoint: Fix socket leak and reduce Accept() overhead. 2013-11-24 22:36:29 +01:00
posix ARM: remove #warning from public header file 2013-10-28 22:04:00 +01:00
private TextSnifferAddon: Use MIME DB directly 2013-11-22 12:24:13 +01:00
tools * Moved everything into the SymbolPatcher namespace. 2009-11-05 17:16:17 +00:00