First alpha release

* Fixed several nasty malloc/memcpy/realloc bugs
* Added sleeps to the threads
* Hack to make the packet flags correct (for now)
* Added a default callback and fixed the callback handler
* Misc. fixes

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@9 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2006-05-25 22:20:56 +00:00
parent dd31af5032
commit 4e6f82d6bf
8 changed files with 129 additions and 48 deletions

View File

@@ -43,12 +43,13 @@ protected:
packetDiagram* _layout;
byte* _buffer;
size_t _length;
boost::asio::ipv4::udp::endpoint _remoteHost;
ProtocolManager* _protocol;
byte _headerLength;
public:
Packet(std::string command = "TestMessage", ProtocolManager* protocol = NULL, size_t length = 0);
Packet(unsigned short command, ProtocolManager* protocol, byte* buffer, size_t length, byte headerLength,
ll::frequency frequency);
virtual ~Packet();
std::string command();
@@ -69,9 +70,6 @@ public:
unsigned short sequence();
void sequence(unsigned short sequence);
boost::asio::ipv4::udp::endpoint getRemoteHost();
void setRemoteHost(boost::asio::ipv4::udp::endpoint remoteHost);
};
#endif //_SL_PACKET_