Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tuio_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
tuio_cpp
Commits
a4374e6b
Commit
a4374e6b
authored
Mar 29, 2017
by
Martin Kaltenbrunner
Browse files
Options
Downloads
Patches
Plain Diff
allow incoming TUIO/TCP socket
parent
2b354880
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
TuioDemo.cpp
+5
-1
5 additions, 1 deletion
TuioDemo.cpp
TuioDump.cpp
+6
-3
6 additions, 3 deletions
TuioDump.cpp
with
11 additions
and
4 deletions
TuioDemo.cpp
+
5
−
1
View file @
a4374e6b
...
...
@@ -308,7 +308,10 @@ TuioDemo::TuioDemo(const char *host, int port, bool udp, bool verb, bool full)
fullscreen
=
full
;
if
(
udp
)
osc_receiver
=
new
UdpReceiver
(
port
);
else
{
if
(
strcmp
(
host
,
"incoming"
)
==
0
)
osc_receiver
=
new
TcpReceiver
(
port
);
else
osc_receiver
=
new
TcpReceiver
(
host
,
port
);
}
tuioClient
=
new
TuioClient
(
osc_receiver
);
tuioClient
->
addTuioListener
(
this
);
...
...
@@ -343,6 +346,7 @@ static void show_help() {
std
::
cout
<<
" -p [port] for alternative port number"
<<
std
::
endl
;
std
::
cout
<<
" -t for TUIO/TCP (default is TUIO/UDP)"
<<
std
::
endl
;
std
::
cout
<<
" -a [address] for remote TUIO/TCP server"
<<
std
::
endl
;
std
::
cout
<<
" use 'incoming' for TUIO/TCP socket"
<<
std
::
endl
;
std
::
cout
<<
" -v verbose output"
<<
std
::
endl
;
std
::
cout
<<
" -h show this help"
<<
std
::
endl
;
}
...
...
This diff is collapsed.
Click to expand it.
TuioDump.cpp
+
6
−
3
View file @
a4374e6b
...
...
@@ -83,7 +83,8 @@ static void show_help() {
std
::
cout
<<
"Usage: TuioDump -p [port] -t -a [address]"
<<
std
::
endl
;
std
::
cout
<<
" -p [port] for alternative port number"
<<
std
::
endl
;
std
::
cout
<<
" -t for TUIO/TCP (dedault is TUIO/UDP)"
<<
std
::
endl
;
std
::
cout
<<
" -a for remote TUIO/TCP server"
<<
std
::
endl
;
std
::
cout
<<
" -a [address] for remote TUIO/TCP server"
<<
std
::
endl
;
std
::
cout
<<
" use 'incoming' for TUIO/TCP socket"
<<
std
::
endl
;
std
::
cout
<<
" -h show this help"
<<
std
::
endl
;
}
...
...
@@ -117,8 +118,10 @@ int main(int argc, char* argv[])
OscReceiver
*
osc_receiver
;
if
(
_udp
)
osc_receiver
=
new
UdpReceiver
(
_port
);
else
{
if
(
_address
==
"incoming"
)
osc_receiver
=
new
TcpReceiver
(
_port
);
else
osc_receiver
=
new
TcpReceiver
(
_address
.
c_str
(),
_port
);
}
TuioDump
dump
;
TuioClient
client
(
osc_receiver
);
client
.
addTuioListener
(
&
dump
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment