* Moved more of the login code out of the client and in to the library

* Packet ACKs are sent automatically now
* Converting more pointers to boost::shared_ptr objects
* Completely redesigned Packet class
* PacketBuilder files containing packet construction functions
* Fixed a few of the naming inconsistencies
* test_app is currently dumping real estate sales data

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@12 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2006-06-01 08:09:12 +00:00
parent 19f531a625
commit 2bcf2add62
17 changed files with 1378 additions and 747 deletions

View File

@@ -39,7 +39,7 @@ class SimConnection
{
protected:
std::string _name;
U32 _code;
unsigned int _code;
boost::asio::ipv4::udp::endpoint _endpoint;
boost::asio::datagram_socket* _socket;
bool _running;
@@ -48,14 +48,14 @@ protected:
public:
SimConnection();
SimConnection(boost::asio::ipv4::address ip, unsigned short port, U32 code);
SimConnection(boost::asio::ipv4::address ip, unsigned short port, unsigned int code);
virtual ~SimConnection();
std::string name() { return _name; };
void name(std::string name) { _name = name; };
U32 code() { return _code; };
void code(U32 code) { _code = code; };
unsigned int code() { return _code; };
void code(unsigned int code) { _code = code; };
boost::asio::ipv4::udp::endpoint endpoint() { return _endpoint; };
void endpoint(boost::asio::ipv4::udp::endpoint endpoint) { _endpoint = endpoint; };
@@ -81,4 +81,6 @@ public:
bool operator!=(SimConnection &p);
};
typedef boost::shared_ptr<SimConnection> SimConnectionPtr;
#endif //_SL_SIMCONNECTION_