Releases: mic1780/websockets
Releases · mic1780/websockets
Fully Dynamic Websocket Server
With this release: compiling get easier, things get fixed, and we go fully dynamic with our functions.
New features:
- NEW: A new all-in-one compiling script replaces all the others (compile.sh) run `./compile.sh -h` to see how to compiling works now.
- NEW: doFunction.c is now the new and improved dynamic library named callFunction.c
- You can now compile new dynamic libraries and add them to callFunction for use without restarting the server, making this application fully dynamic.
- Work has begun on integrating a sql library into the server (coming soon)
Changes:
- compileFunctions, compileLibs, compileApp, build, and setupEnv have been replaced by compile.sh
- doFunction has been moved to libfunctions
- callFunction is called from doFunction and allows for any dynamic functions (new/updated) to be loaded in without restarting the application
- Fixed issues where UNIX users could not run `./run.out` directly
- Fixed an issue with sendMessage where multiple sendall commands would cause an error that disconnected clients from the server
Dynamic Websocket Server
This release makes it easier to create the server as well as some console commands for the server.
New features:
- Created script (build.sh) to run all the compile scripts with their default arguments
- Non-Windows users: Compile scripts now create .so files instead of .dll files that are used by windows
- Compiling scripts now create files with their proper extensions (tested on Windows and UNIX)
- added console commands to the server via command line (type "help" for a list of commands)
Changes:
- compileLibs.sh now cleans itself up.
- Removed run.exe and run.sh from the repo (see below)
- compileApp.sh now makes a new run executable appropriate for your system.
Partially-Dynamic C Websocket
This release includes making performAction a dynamic call, createHolder changes, and changed compile scripts
New features:
- Calls to performAction are now called through doFunction
- For Linux: You can do the following to start the server
./setupEnv.sh [ run {appName} ]
Where {appName} is the name of the server application (defaults to websocket when ./compileApp.sh has no arguments). {appName} is optional and if excluded will setup the current run environment when called using. setupEnv.sh
- For Linux: You can run
./run.sh [ {appName} ]
to start the server ({appName} is optional and defaults to websocket when excluded) - Windows: You can now double-click run.exe to start the server (no longer need to do it via command prompt as long as the {appName} is websocket.exe)
Changes:
- Added performAction to doFunction.
- Made changes to createHolder to allow for ways to create dynamic holders for doFunction
- Added a length argument to destroyHolder to allow for the change to createHolder functions
- Replaced all static performAction calls in websocket.c with doFunction("performAction", holder)
Partially-Dynamic C Websocket
This release includes minor changes to websocket.c and fixed some linking problems where the client array could get called from a dynamic library.
New features:
- For Linux: You can do the following to start the server
./setupEnv.sh [ run {appName} ]
Where {appName} is the name of the server application (defaults to websocket when ./compileApp.sh has no arguments). {appName} is optional and if excluded will setup the current run environment when called using. setupEnv.sh
- For Linux: You can run
./run.sh [ {appName} ]
to start the server ({appName} is optional and defaults to websocket when excluded) - Windows: You can now double-click run.exe to start the server (no longer need to do it via command prompt as long as the {appName} is websocket.exe)
Changes:
- Fixed a bug where alterStruct would call a new socketArray. (would occur when first client connects using the included index.html
- Added .gitignore files to maintain folder structure. (not having a folder when compiling would cause failed compiles)
- doFunction is now returns data from dynamic libs. (alterStruct did this before but was temporarity removed when changed to dynamic)
Partially-Dynamic C Websocket
New in this release!
sendMessage is now dynamically loaded.
alterStruct is now dynamically loaded.
Seperate shell scripts for compiling.
Minor bug fixes.