diff options
author | dmitrievanthony <dmitrievanthony@gmail.com> | 2018-08-26 16:03:04 +0000 |
---|---|---|
committer | Anton Dmitriev <dmitrievanthony@gmail.com> | 2018-09-11 10:01:10 +0000 |
commit | 241c1740ee26b57b7a5fe8f72b9d34f4515af760 (patch) | |
tree | 117141658d9a2e64b55d40359f4b301ddfb1a9bf /tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h | |
parent | 28b0608a8536c287b4084449e36fd42b6f4aed5b (diff) |
Update after review: change 'ignite' namespace to 'tensorflow', rename variables to satisty code style, use pointers instead of references.
Diffstat (limited to 'tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h')
-rw-r--r-- | tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h b/tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h index e0c2a242dc..bbba6cc181 100644 --- a/tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h +++ b/tensorflow/contrib/ignite/kernels/ignite_ssl_wrapper.h @@ -13,15 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef IGNITE_CLIENT_H -#define IGNITE_CLIENT_H #include "ignite_client.h" -#endif #include <openssl/ssl.h> #include <string> -namespace ignite { +namespace tensorflow { class SslWrapper : public Client { public: @@ -29,21 +26,22 @@ class SslWrapper : public Client { std::string keyfile, std::string cert_password); ~SslWrapper(); - virtual tensorflow::Status Connect(); - virtual tensorflow::Status Disconnect(); + virtual Status Connect(); + virtual Status Disconnect(); virtual bool IsConnected(); virtual int GetSocketDescriptor(); - virtual tensorflow::Status ReadData(uint8_t* buf, int32_t length); - virtual tensorflow::Status WriteData(uint8_t* buf, int32_t length); + virtual Status ReadData(uint8_t* buf, int32_t length); + virtual Status WriteData(uint8_t* buf, int32_t length); private: - std::shared_ptr<Client> client; - std::string certfile; - std::string keyfile; - std::string cert_password; - SSL_CTX* ctx; - SSL* ssl; - tensorflow::Status InitSslContext(); + std::shared_ptr<Client> client_; + std::string certfile_; + std::string keyfile_; + std::string cert_password_; + SSL_CTX* ctx_; + SSL* ssl_; + + Status InitSslContext(); }; -} // namespace ignite +} // namespace tensorflow |