namespace apache { namespace thrift { namespace transport {
-using namespace boost;
-
/**
* SSL server socket implementation.
*/
TSSLServerSocket::TSSLServerSocket(THRIFT_SOCKET port,
- shared_ptr<TSSLSocketFactory> factory):
+ boost::shared_ptr<TSSLSocketFactory> factory):
TServerSocket(port), factory_(factory) {
factory_->server(true);
}
TSSLServerSocket::TSSLServerSocket(int port, int sendTimeout, int recvTimeout,
- shared_ptr<TSSLSocketFactory> factory):
+ boost::shared_ptr<TSSLSocketFactory> factory):
TServerSocket(port, sendTimeout, recvTimeout),
factory_(factory) {
factory_->server(true);
}
-shared_ptr<TSocket> TSSLServerSocket::createSocket(THRIFT_SOCKET client) {
+boost::shared_ptr<TSocket> TSSLServerSocket::createSocket(THRIFT_SOCKET client) {
return factory_->createSocket(client);
}
#define OPENSSL_VERSION_NO_THREAD_ID 0x10000000L
using namespace std;
-using namespace boost;
using namespace apache::thrift::concurrency;
struct CRYPTO_dynlock_value {
return length;
}
-static shared_array<Mutex> mutexes;
+static boost::shared_array<Mutex> mutexes;
static void callbackLocking(int mode, int n, const char*, int) {
if (mode & CRYPTO_LOCK) {
SSL_library_init();
SSL_load_error_strings();
// static locking
- mutexes = shared_array<Mutex>(new Mutex[::CRYPTO_num_locks()]);
+ mutexes = boost::shared_array<Mutex>(new Mutex[::CRYPTO_num_locks()]);
if (mutexes == NULL) {
throw TTransportException(TTransportException::INTERNAL_ERROR,
"initializeOpenSSL() failed, "
}
}
if (errors.empty()) {
- errors = "error code: " + lexical_cast<string>(errno_copy);
+ errors = "error code: " + boost::lexical_cast<string>(errno_copy);
}
}
using namespace tutorial;
using namespace shared;
-using namespace boost;
-
int main(int argc, char** argv) {
boost::shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
using namespace tutorial;
using namespace shared;
-using namespace boost;
-
class CalculatorHandler : public CalculatorIf {
public:
CalculatorHandler() {}