Original Post
well, i made a static-lib. and i created this three classes in
Connection
http://pastebin.com/Ea9nLFUw
ConnectionFactory
http://pastebin.com/jeAg0cr7
Server
http://pastebin.com/x2ywkKCy
and i drevid from the static-lib and used this classes and it's working perfect
in my main.cpp
but the Receive() method is not invoking the handle_Receive() method!, can some one tell me what am doing wrong here!!!!???
Connection
http://pastebin.com/Ea9nLFUw
ConnectionFactory
http://pastebin.com/jeAg0cr7
Server
http://pastebin.com/x2ywkKCy
and i drevid from the static-lib and used this classes and it's working perfect
in my main.cpp
#include <iostream>
#include "auth_proto.h"
#include <Server.h>
#include <ConnectionFactory.h>
#include "AuthConnectionFactory.h"
using namespace std;
int main()
{
Auth_Setup();
try
{
boost::asio::io_service io_service;
boost::shared_ptr<ConnectionFactory> fact (new AuthConnectionFactory(io_service));
Server s(io_service,"5.113.195.156",9959,fact);
io_service.run();
}
catch (std::exception& e)
{
std::cerr << e.what() << std::endl;
}
return 0;
}but the Receive() method is not invoking the handle_Receive() method!, can some one tell me what am doing wrong here!!!!???