forked from aria2/aria2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I made following modifications to the original library: The doc directory was removed. Made shared library disabled by configure. Removed doc from SUBDIRS in Makefile.am.
- Loading branch information
1 parent
41c77ab
commit 86ecf36
Showing
41 changed files
with
6,186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
*~ | ||
*.o | ||
*.lo | ||
*.la | ||
depcomp | ||
*.m4 | ||
Makefile | ||
Makefile.in | ||
libtool | ||
missing | ||
autom4te.cache/ | ||
config.guess | ||
config.h | ||
config.h.in | ||
config.log | ||
config.status | ||
config.sub | ||
configure | ||
install-sh | ||
.deps/ | ||
.libs | ||
lib/includes/wslay/wslayver.h | ||
lib/libwslay.pc | ||
ltmain.sh | ||
stamp-h1 | ||
.deps/ | ||
INSTALL | ||
.DS_STORE | ||
tests/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tatsuhiro Tsujikawa <t-tujikawa at users dot sourceforge dot net> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Wslay - The WebSocket Library | ||
|
||
# Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa | ||
|
||
# Permission is hereby granted, free of charge, to any person obtaining | ||
# a copy of this software and associated documentation files (the | ||
# "Software"), to deal in the Software without restriction, including | ||
# without limitation the rights to use, copy, modify, merge, publish, | ||
# distribute, sublicense, and/or sell copies of the Software, and to | ||
# permit persons to whom the Software is furnished to do so, subject to | ||
# the following conditions: | ||
|
||
# The above copyright notice and this permission notice shall be | ||
# included in all copies or substantial portions of the Software. | ||
|
||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
SUBDIRS = lib tests | ||
|
||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
EXTRA_DIST = examples/Makefile \ | ||
examples/fork-echoserv.c \ | ||
examples/echoserv.cc \ | ||
examples/testclient.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
wslay 0.1.1 | ||
=========== | ||
|
||
Release Note | ||
------------ | ||
|
||
This release fixes the example programs and tutorial. It does not | ||
change library code at all, so the library version has not been | ||
changed. | ||
|
||
Changes | ||
------- | ||
|
||
* Fixed example source code and tutorial. | ||
|
||
|
||
|
||
wslay 0.1.0 | ||
=========== | ||
|
||
Release Note | ||
------------ | ||
|
||
This is the initial release of wslay WebSocket C library. | ||
|
||
Wslay is a WebSocket library written in C. It implements the protocol | ||
version 13 described in RFC 6455. This library offers 2 levels of API: | ||
event-based API and frame-based low-level API. For event-based API, it | ||
is suitable for non-blocking reactor pattern style. You can set | ||
callbacks in various events. For frame-based API, you can send | ||
WebSocket frame directly. Wslay only supports data transfer part of | ||
WebSocket protocol and does not perform opening handshake in HTTP. | ||
|
||
Wslay does not perform any I/O operations for its own. Instead, it | ||
offers callbacks for them. This makes Wslay independent on any I/O | ||
frameworks, SSL, sockets, etc. This makes Wslay protable across | ||
various platforms and the application authors can choose freely IO | ||
frameworks. | ||
|
||
Visit http://wslay.sourceforge.net/ for the API reference and | ||
tutorial. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Wslay - The WebSocket library | ||
============================= | ||
|
||
Project Web: http://wslay.sourceforge.net/ | ||
|
||
Wslay is a WebSocket library written in C. | ||
It implements the protocol version 13 described in | ||
`RFC 6455 <http://tools.ietf.org/html/rfc6455>`_. | ||
This library offers 2 levels of API: | ||
event-based API and frame-based low-level API. For event-based API, it | ||
is suitable for non-blocking reactor pattern style. You can set | ||
callbacks in various events. For frame-based API, you can send | ||
WebSocket frame directly. Wslay only supports data transfer part of | ||
WebSocket protocol and does not perform opening handshake in HTTP. | ||
|
||
Wslay supports: | ||
|
||
* Text/Binary messages. | ||
* Automatic ping reply. | ||
* Callback interface. | ||
* External event loop. | ||
|
||
Wslay does not perform any I/O operations for its own. Instead, it | ||
offers callbacks for them. This makes Wslay independent on any I/O | ||
frameworks, SSL, sockets, etc. This makes Wslay protable across | ||
various platforms and the application authors can choose freely I/O | ||
frameworks. | ||
|
||
See Autobahn test reports: | ||
`server <http://wslay.sourceforge.net/autobahn/reports/servers/index.html>`_ | ||
and | ||
`client <http://wslay.sourceforge.net/autobahn/reports/clients/index.html>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
dnl Wslay - The WebSocket Library | ||
|
||
dnl Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa | ||
|
||
dnl Permission is hereby granted, free of charge, to any person obtaining | ||
dnl a copy of this software and associated documentation files (the | ||
dnl "Software"), to deal in the Software without restriction, including | ||
dnl without limitation the rights to use, copy, modify, merge, publish, | ||
dnl distribute, sublicense, and/or sell copies of the Software, and to | ||
dnl permit persons to whom the Software is furnished to do so, subject to | ||
dnl the following conditions: | ||
|
||
dnl The above copyright notice and this permission notice shall be | ||
dnl included in all copies or substantial portions of the Software. | ||
|
||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
dnl NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
dnl LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
dnl OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
dnl WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
AC_PREREQ(2.61) | ||
LT_PREREQ([2.2.6]) | ||
AC_INIT([wslay], [0.1.1], [[email protected]]) | ||
LT_INIT([disable-shared]) | ||
AC_CONFIG_AUX_DIR([.]) | ||
dnl See versioning rule: | ||
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html | ||
AC_SUBST(LT_CURRENT, 0) | ||
AC_SUBST(LT_REVISION, 0) | ||
AC_SUBST(LT_AGE, 0) | ||
|
||
AC_CONFIG_MACRO_DIR([m4]) | ||
|
||
AM_INIT_AUTOMAKE() | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
dnl Checks for programs | ||
AC_PROG_CC | ||
AC_PROG_INSTALL | ||
AC_PROG_LN_S | ||
AC_PROG_MAKE_SET | ||
|
||
AC_PATH_PROG([SPHINX_BUILD], [sphinx-build]) | ||
AC_SUBST([SPHINX_BUILD]) | ||
AM_CONDITIONAL([HAVE_SPHINX_BUILD], [ test "x$SPHINX_BUILD" != "x" ]) | ||
|
||
# Checks for libraries. | ||
AC_CHECK_LIB([cunit], [CU_initialize_registry], | ||
[have_cunit=yes], [have_cunit=no]) | ||
AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ]) | ||
|
||
# Checks for header files. | ||
AC_CHECK_HEADERS([ \ | ||
arpa/inet.h \ | ||
netinet/in.h \ | ||
stddef.h \ | ||
stdint.h \ | ||
stdlib.h \ | ||
string.h \ | ||
unistd.h \ | ||
]) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
AC_TYPE_SIZE_T | ||
AC_TYPE_SSIZE_T | ||
AC_TYPE_UINT8_T | ||
AC_TYPE_UINT16_T | ||
AC_TYPE_UINT32_T | ||
AC_TYPE_UINT64_T | ||
AC_CHECK_TYPES([ptrdiff_t]) | ||
AC_C_BIGENDIAN | ||
|
||
# Checks for library functions. | ||
AC_FUNC_MALLOC | ||
AC_CHECK_FUNCS([ \ | ||
memmove \ | ||
memset \ | ||
ntohl \ | ||
ntohs \ | ||
htons | ||
]) | ||
|
||
AC_CONFIG_FILES([ | ||
Makefile | ||
lib/Makefile | ||
lib/libwslay.pc | ||
lib/includes/Makefile | ||
lib/includes/wslay/wslayver.h | ||
tests/Makefile | ||
]) | ||
AC_OUTPUT | ||
|
||
AC_MSG_NOTICE([summary of build options: | ||
version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE | ||
Host type: ${host} | ||
Install prefix: ${prefix} | ||
C compiler: ${CC} | ||
CFlags: ${CFLAGS} | ||
Library types: Shared=${enable_shared}, Static=${enable_static} | ||
CUnit: ${have_cunit} | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fork-echoserv | ||
echoserv | ||
testclient |
Oops, something went wrong.