Commit Graph

9 Commits

Author SHA1 Message Date
Oliver Tappe 49a22456dd Overhauled BNetEndpoint implementation (and BNetAddress, too):
* added NetEndpointTest that exposed a couple of bugs
* fixed several bugs in the implementation of BNetEndpoint, some of which kept 
  NetPenguin from working
* fixed a couple of constness issues in BNetEndpoint and BNetAddress


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-13 19:58:35 +00:00
Oliver Tappe 1aa3d2e3f3 Resolved a couple of problems in BNetAddress implementation:
* fixed several byte order inconsistencies, it does not make sense to always
  convert the byte order input/output values - no we convert where it can
  be expected and leave it where it is confusing
* fixed size inconsistencies with respect to family and port, both of which
  were sometimes handled as int8, as int16 and as int32 in different places
  (now they are always int16)
These fixes make Beam connect to the correct address and port, but it still doesn't work, as it seems to be using UDP instead of TCP (doh!). Will look into that tomorrow.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-05 22:37:06 +00:00
Axel Dörfler 241b048033 * Fixed build of libnetapi.so - it probably won't work for now, though, have a look
at the comment in r5_compatibility.h.
* Intentionally broke source compatibility and removed all that outdated Nettle stuff.
* Also, I took the liberty of making m_init private and rename it to fInit - again, this
  will only affect source compatibility.
* Rewrote NetEndpoint.h
* Fixed quite a few small bugs around the code that I touched, for example in NetAddress,
  SetTo() never set fInit, and therefore could be wrong.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 00:19:23 +00:00
Philippe Houdoin ad31a3c1c8 Comment about unsupported Nettle backward compatibility added.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 00:20:34 +00:00
Philippe Houdoin 082059d403 Checked-in the update Scott Mansfield made to these BNet* classes declarations to male
them binary compatible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-17 01:24:44 +00:00
Philippe Houdoin 2ae4404ac1 On behalf of Scott Mansfield, the 3/4 Net* classes headers are there.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-01 02:49:38 +00:00
beveloper b8377d8cb4 changes header guards
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 14:02:18 +00:00
Philippe Houdoin ae68bb3273 Re-written by Scott Mansfield <thephantom@mac.com>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-16 22:54:05 +00:00
Philippe Houdoin 4c44e39a3a Initial checkin of C++ BeOS Net API include files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 21:25:08 +00:00