| 89 | */ |
| 90 | |
| 91 | TSocket::TSocket(const string& host, int port, std::shared_ptr<TConfiguration> config) |
| 92 | : TVirtualTransport(config), |
| 93 | host_(host), |
| 94 | port_(port), |
| 95 | socket_(THRIFT_INVALID_SOCKET), |
| 96 | peerPort_(0), |
| 97 | connTimeout_(0), |
| 98 | sendTimeout_(0), |
| 99 | recvTimeout_(0), |
| 100 | keepAlive_(false), |
| 101 | lingerOn_(1), |
| 102 | lingerVal_(0), |
| 103 | noDelay_(1), |
| 104 | maxRecvRetries_(5) { |
| 105 | } |
| 106 | |
| 107 | TSocket::TSocket(const string& path, std::shared_ptr<TConfiguration> config) |
| 108 | : TVirtualTransport(config), |
no outgoing calls