-Connection::checkPacketType shouldn't assume the value of NEGOTIATION_PACKET is 1 or GAME_PACKET is 0.

git-svn-id: http://odamex.net/svn/root/branches/net3-base@4568 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Add BitStream::getRawData to return a const pointer to the stream's internal storage buffer and pass it to NetInterface::socketSend directly when writing a BitStream to a socket. This avoids making an intermediate copy of the buffer.

git-svn-id: http://odamex.net/svn/root/branches/net3-base@4569 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Add a reference counting scheme to BitStream to ensure proper ownership semantics.
-BitStream utilizes a static SArray member to act as an object pool for fast allocation/deallocation.
-Each BitStream object now internally stores only a unique ID number that is a handle into the static object pool where the BitStream's data is kept.

git-svn-id: http://odamex.net/svn/root/branches/net3-base@4571 b0bcef46-2027-0410-bd56-ab726e9a1d04