Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
screen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
screen
Commits
73959cbc
Commit
73959cbc
authored
May 19, 2017
by
Neil Gershenfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting client.js
parent
ec5f5238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
client-server/client.js
client-server/client.js
+33
-0
No files found.
client-server/client.js
0 → 100644
View file @
73959cbc
//
// client.js
// streaming content Node client
// Neil Gershenfeld
// 2/12/17
// todo
// uses maim for screen capture:
// https://github.com/naelstrof/maim
// https://github.com/naelstrof/maim/archive/master.zip
// install libimlib2-dev libxrandr-dev libxfixes-dev cmake
//
// command line
//
if
(
process
.
argv
.
length
!=
4
)
{
console
.
log
(
"
node client.js server_address server_port
"
)
process
.
exit
()
}
var
address
=
parseInt
(
process
.
argv
[
2
])
var
port
=
parseFloat
(
process
.
argv
[
3
])
//
// requires
//
const
spawn
=
require
(
'
child_process
'
).
spawn
;
const
spawnSync
=
require
(
'
child_process
'
).
spawnSync
const
fork
=
require
(
'
child_process
'
).
fork
const
fs
=
require
(
'
fs
'
)
const
http
=
require
(
'
http
'
)
//
// globals
//
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment