Commit graph

62 commits

Author SHA1 Message Date
birme
df88ce6cf4 Fixed missing break in switch statements 2020-07-20 11:53:35 +02:00
Stephan Hesse
7973c63f2a
TypeScript support (definition files) + a few small enhancement proposals (#5)
* add typescript definition files for this JS API

* server.js: replace console.log by debug() call

* server.js: set "iface" and "port" properties on SRTServer listen call
+ and init them with null in constructor

* stream.js: SRTReadStream: init fd property with null in constructor

* stream.js: SRTReadStream: add close method (to free the fd aquired with
connect()), likewise the writable stream methods

* example files: add "use strict"; directive on all

* examples/srt.js: correctly state variable fhandle (this would crash in strict mode
otherwise)

* NAPI: NodeSRT::GetSockOpt: fix error handling to really reach ThrowAsJavaScriptException

* add example: srt.ts (TypeScript usage)

* add .editoconfig to project root (helps keeping files free of whitespaces
and maintain indentation etc)

* package.json: improve metadata quality (via npm init call)

* package.json: add dev-deps for tsc/ts-node and node type-defs

* package.json: add check-tsc script to compile typescript example

* gitignore: add tsc-lib (typescript compiler test output)

* add tsconfig.json (typescript compiler config)

* some end-of-file newline and whitespace fixes

* stream.js: add const decls for all the magic numbers in SRTReadStream

* enable eslint static analysis to find possible issues upfront
+ and maintain codestyle

* update package-lock

* stream.js: fix whitespace and eof

* add lint script for src, examples and types modules

* types: lint error fix
2020-07-20 11:41:15 +02:00
birme
25db0b005b 0.2.3 2020-07-03 14:26:47 +02:00
birme
b4f6a98fc5 fix: the readable stream was blocking the entire event queue... 2020-07-03 14:26:40 +02:00
birme
bee98afade 0.2.2 2020-06-30 14:14:08 +02:00
birme
19c8e8bc89 A client server example 2020-06-29 15:24:16 +02:00
birme
2850764451 Handle when client disconnects and ability to close a writeable socket 2020-06-29 15:24:03 +02:00
birme
b958e51ed9 0.2.1 2020-06-25 13:59:26 +02:00
birme
69ac308a82 Check that some socket options are available 2020-06-25 13:59:22 +02:00
birme
79cadfc1eb Merge branch 'master' of github.com:Eyevinn/node-srt 2020-06-25 13:42:57 +02:00
birme
7486df5da1 Added all SRTO and SRTS enums 2020-06-25 13:02:07 +02:00
Jonas Birmé
444bddb977
Create LICENSE (#4) 2020-06-24 22:40:02 +02:00
birme
cb39766bb6 Removed vcpkg submodule 2020-06-24 22:01:22 +02:00
birme
7ad55d7832 Revert attempt to build on windows on push 2020-06-24 21:59:52 +02:00
birme
b3fca6ae00 Do not install any port 2020-06-24 21:40:38 +02:00
birme
05492afb2f Add vcpkg module 2020-06-24 21:35:42 +02:00
birme
4fc9abc457 Another attempt to build on windows 2020-06-24 21:28:32 +02:00
birme
43cb580cb2 Revert attempt to build on windows 2020-06-24 21:19:53 +02:00
birme
068bfbc97e Setup vcpkg for windows build 2020-06-24 21:08:28 +02:00
birme
44a1c05aa6 Github workflow to build on windows 2020-06-24 20:56:57 +02:00
birme
9b72cf29d0 0.2.0 2020-06-24 12:55:33 +02:00
birme
ee2077c896 Async readstream listen 2020-06-24 12:55:23 +02:00
birme
f79e40a4c4 Moved logging to make more clear that it is not blocking 2020-06-24 12:38:05 +02:00
birme
d41259a138 Added example for non blocking polling 2020-06-24 12:36:44 +02:00
birme
5aa37ed66e Updated API doc with the additional bindings 2020-06-24 12:23:04 +02:00
birme
8ff82099b8 Implemented bindings for epoll 2020-06-24 12:18:01 +02:00
birme
08d1eedad8 Can get socket state 2020-06-24 11:34:33 +02:00
birme
62b4e43ebe Can set socket in non-blocking mode 2020-06-24 11:12:02 +02:00
birme
cbf6e2ca87 Ability to set and get sockopt 2020-06-24 10:53:45 +02:00
birme
b0189b20df Misspelling 2020-06-24 09:34:01 +02:00
birme
cf5b16ae87 Build and test on push 2020-06-24 09:32:35 +02:00
birme
7b6ebe9295 Changed name for job 2020-06-24 09:32:26 +02:00
Jonas Birmé
d1ca462bff
Added framework for unit tests (#3) 2020-06-24 09:29:24 +02:00
birme
9a646c84bc 0.1.4 2020-06-24 08:48:38 +02:00
birme
0e650a07b9 Compile on mac os 2020-06-24 08:46:21 +02:00
Dillon Pentz
5b3fc5cdc5
Add Windows build support (#2)
This commit adds Windows build support by utilizing vcpkg to build
dependencies, and CMake for the build system.

These changes rely on vcpkg to be built and located in the VCPKG_ROOT
environment variable, along with having Visual Studio 2019 installed.
2020-06-24 08:44:52 +02:00
birme
937c1a2322 0.1.3 2020-06-22 13:46:31 +02:00
birme
ef94263b8a Implemented writable streams interface 2020-06-22 13:45:43 +02:00
birme
ec9854efe7 Updated readable example with caller mode 2020-06-22 13:04:15 +02:00
birme
a93211894d Implemented readable in caller mode 2020-06-22 13:03:08 +02:00
birme
8571776337 0.1.2 2020-06-22 11:53:18 +02:00
birme
24824d3c9a Push tag after new version 2020-06-22 11:53:15 +02:00
birme
6432c6c125 Updated readme and publish workflow 2020-06-22 11:52:36 +02:00
birme
0122a02fed Implemented custom readable stream 2020-06-22 11:49:07 +02:00
birme
78a25f9e1d Handle error on recv 2020-06-22 11:42:48 +02:00
birme
6b9a74fec8 Simple API definition documented 2020-06-20 23:04:52 +02:00
birme
8e063aada4 0.1.1 2020-06-20 22:48:21 +02:00
birme
7cf66c1335 Clarified that it is built on install 2020-06-20 22:48:05 +02:00
birme
0c9c868791 At the moment no prebuilt binaries are available 2020-06-20 22:47:22 +02:00
birme
5c598a89fa Build SRT SDK on install 2020-06-20 22:33:28 +02:00