Sockets implementation for Windows, WebSockets client now working.

This commit is contained in:
Ben Vanik
2013-12-16 22:43:03 -08:00
parent d548e7f770
commit b5f5668f6d
8 changed files with 216 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ using namespace xe::debug;
using namespace xe::debug::protocols::ws;
WSClient::WSClient(DebugServer* debug_server, int socket_id) :
WSClient::WSClient(DebugServer* debug_server, socket_t socket_id) :
DebugClient(debug_server),
thread_(NULL),
socket_id_(socket_id) {
@@ -52,10 +52,6 @@ WSClient::~WSClient() {
xe_thread_release(thread_);
}
int WSClient::socket_id() {
return socket_id_;
}
int WSClient::Setup() {
// Prep the socket.
xe_socket_set_keepalive(socket_id_, true);