Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.h
diff --git a/experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.h b/experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.h
deleted file mode 100644
index 88147eaed935b83d850869f895718c8014182f7f..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef EXPERIMENTAL_VISUAL_STUDIO_PLUGIN_SRC_RSP_PROXY_PROXY_SOCKET_H_
-#define EXPERIMENTAL_VISUAL_STUDIO_PLUGIN_SRC_RSP_PROXY_PROXY_SOCKET_H_
-
-#include <winsock.h>
-#include <string>
-
-namespace debug {
-
-// Implements a listening socket.
-// Example:
-// ListeningSocket lsn;
-// lsn.Setup(4014);
-// Socket conn;
-// if (lsn.Accept(&conn, 200))
-// DoSomethingWithNewConnection(conn);
-
-class Socket;
-class ListeningSocket {
- public:
- ListeningSocket();
- ~ListeningSocket();
-
- bool Setup(int port); // Listens on port.
- bool Accept(Socket* new_connection, int wait_ms);
- void Close();
-
- private:
- SOCKET sock_;
- bool init_success_;
-};
-
-// Implements a raw socket interface.
-// Example:
-// Socket conn;
-// if (conn.ConnectTo("172.29.20.175", 4016))
-// DoSomethingWithNewConnection(conn);
-
-class Socket {
- public:
- Socket();
- ~Socket();
-
- bool ConnectTo(const std::string& host, int port);
- bool IsConnected() const;
- void Close();
- size_t Read(void* buff, size_t sz, int wait_ms);
- size_t Write(const void* buff, size_t sz, int wait_ms);
- void WriteAll(const void* buff, size_t sz);
-
- private:
- void AttachTo(SOCKET sock);
-
- SOCKET sock_;
- bool init_success_;
- friend class ListeningSocket;
-};
-} // namespace debug
-#endif // EXPERIMENTAL_VISUAL_STUDIO_PLUGIN_SRC_RSP_PROXY_PROXY_SOCKET_H_
-
-
« no previous file with comments | « experimental/visual_studio_plugin/src/loop/readme.txt ('k') | experimental/visual_studio_plugin/src/rsp_proxy/proxy_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698