Initial the websocket implementation.

Not yet running on other threads, but can read/write to a websocket from
a browser.
This commit is contained in:
Ben Vanik
2013-02-02 02:50:56 -08:00
parent c2fbafdc28
commit 5650cf92ab
14 changed files with 492 additions and 28 deletions

View File

@@ -3,7 +3,7 @@
'targets': [
{
'target_name': 'gflags',
'type': 'static_library',
'type': '<(library)',
'direct_dependent_settings': {
'conditions': [

1
third_party/openssl vendored Submodule

Submodule third_party/openssl added at d1b1f821ba

View File

@@ -3,7 +3,7 @@
'targets': [
{
'target_name': 'sparsehash',
'type': 'static_library',
'type': '<(library)',
'direct_dependent_settings': {
'include_dirs': [

1
third_party/wslay vendored Submodule

Submodule third_party/wslay added at d2caaf13db

52
third_party/wslay.gypi vendored Normal file
View File

@@ -0,0 +1,52 @@
# Copyright 2013 Ben Vanik. All Rights Reserved.
{
'targets': [
{
'target_name': 'wslay',
'type': '<(library)',
'direct_dependent_settings': {
'include_dirs': [
'wslay/lib/includes/',
],
'defines': [
'WSLAY_VERSION=1',
],
# libraries: ws2_32 on windows
},
'defines': [
'WSLAY_VERSION="1"',
],
'conditions': [
['OS != "win"', {
'defines': [
'HAVE_ARPA_INET_H=1',
'HAVE_NETINET_IN_H=1',
],
}],
['OS == "win"', {
'defines': [
'HAVE_WINSOCK2_H=1',
],
}],
],
'include_dirs': [
'wslay/lib/',
'wslay/lib/includes/',
],
'sources': [
'wslay/lib/wslay_event.c',
'wslay/lib/wslay_frame.c',
'wslay/lib/wslay_net.c',
'wslay/lib/wslay_queue.c',
'wslay/lib/wslay_stack.c',
],
}
]
}