Skip to content

Commit 1bc35a6

Browse files
committed
changed license from LGPL to MIT. updated readme to reflect new autotools build process
1 parent 4129baf commit 1bc35a6

File tree

4 files changed

+61
-44
lines changed

4 files changed

+61
-44
lines changed

README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,18 @@ cwebsocket is compliant with the following standards:
2525

2626
By default, cwebsocket is built with SSL support for multi-threaded, 64-bit architectures. To build, run:
2727

28+
./autogen.sh
29+
./configure
2830
make
29-
30-
To build a shared object library (libcwebsocket.so), run:
31-
32-
make so
33-
34-
##### Customizing/Optimizing Build
31+
sudo make install
3532

3633
Without threads:
3734

38-
make NOTHREADS=1
35+
./configure --enable-threads=no
3936

4037
Without SSL:
4138

42-
make NOSSL=1
43-
44-
Target 32-bit architecture:
45-
46-
make PLATFORM=x86
47-
48-
Target ARM architecture:
49-
50-
make PLATFORM=arm
51-
52-
> NOTE: 32-bit architectures are limited to a max payload size of 65536 byte frames.
39+
./configure --enable-ssl=no
5340

5441
### Client
5542

src/cwebsocket.c

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
/**
2-
* cwebsocket: A fast, lightweight websocket client/server
2+
* The MIT License (MIT)
33
*
44
* Copyright (c) 2014 Jeremy Hahn
55
*
6-
* This file is part of cwebsocket.
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
712
*
8-
* cwebsocket is free software: you can redistribute it and/or modify
9-
* it under the terms of the GNU Lesser General Public License as published
10-
* by the Free Software Foundation, either version 3 of the License, or
11-
* (at your option) any later version.
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
1215
*
13-
* cwebsocket is distributed in the hope that it will be useful,
14-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
* GNU Lesser General Public License for more details.
17-
*
18-
* You should have received a copy of the GNU Lesser General Public License
19-
* along with cwebsocket. If not, see <http://www.gnu.org/licenses/>.
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
2023
*/
2124

2225
#include "cwebsocket.h"

src/cwebsocket.h

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
/**
2-
* cwebsocket: A fast, lightweight websocket client/server
2+
* The MIT License (MIT)
33
*
44
* Copyright (c) 2014 Jeremy Hahn
55
*
6-
* This file is part of cwebsocket.
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
712
*
8-
* cwebsocket is free software: you can redistribute it and/or modify
9-
* it under the terms of the GNU Lesser General Public License as published
10-
* by the Free Software Foundation, either version 3 of the License, or
11-
* (at your option) any later version.
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
1215
*
13-
* cwebsocket is distributed in the hope that it will be useful,
14-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
* GNU Lesser General Public License for more details.
17-
*
18-
* You should have received a copy of the GNU Lesser General Public License
19-
* along with cwebsocket. If not, see <http://www.gnu.org/licenses/>.
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
2023
*/
2124

2225
#ifndef WEBSOCKET_CLIENT_H

src/main.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2014 Jeremy Hahn
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
125
#include <stdio.h>
226
#include <signal.h>
327
#include "cwebsocket.h"

0 commit comments

Comments
 (0)