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
This commit is contained in:
@@ -52,10 +52,10 @@ class BNetAddress : public BArchivable {
|
||||
virtual void _ReservedBNetAddressFBCCruft6();
|
||||
|
||||
status_t fInit;
|
||||
int32 fFamily;
|
||||
int32 fPort;
|
||||
int16 fFamily;
|
||||
int16 fPort;
|
||||
int32 fAddress;
|
||||
int32 fPrivateData[6];
|
||||
int32 fPrivateData[7];
|
||||
};
|
||||
|
||||
#endif // H_NETADDRESS
|
||||
|
||||
Reference in New Issue
Block a user