felix
2014-10-09 21:58:52 UTC
This should be very easy, but I've never actually done it. I always use
UDP.
but now my packet is too big and I wanted to try TCP.
(UDP will not report to the sender when a packet fails. any point in the
network can fail)
The NetAddr docs state that its opening a TCP connection, but its actually
all UDP.
Sending OSC via UDP to sclang is quite easy. you just open a datagram
UDP always sends messages with host and port.
TCP is connection based and needs to open a connection.
sclang refuses the connection. also does not accept telnet connections.
error - ERROR:Error: connect ECONNREFUSED
sclang -h
-u <network-port-number> Set UDP listening port (default 57120)
so there's a UDP options, but no TCP options. Which suggests sclang does
not accept TCP connections at all and has no mechanism for doing so.
So sclang is strictly UDP, but scsynth can be TCP and sclang can connect to
that over TCP. it can also connect to other apps over TCP.
but it doesn't do incoming.
amirite ?
UDP.
but now my packet is too big and I wanted to try TCP.
(UDP will not report to the sender when a packet fails. any point in the
network can fail)
The NetAddr docs state that its opening a TCP connection, but its actually
all UDP.
Sending OSC via UDP to sclang is quite easy. you just open a datagram
UDP always sends messages with host and port.
TCP is connection based and needs to open a connection.
sclang refuses the connection. also does not accept telnet connections.
error - ERROR:Error: connect ECONNREFUSED
sclang -h
-u <network-port-number> Set UDP listening port (default 57120)
so there's a UDP options, but no TCP options. Which suggests sclang does
not accept TCP connections at all and has no mechanism for doing so.
So sclang is strictly UDP, but scsynth can be TCP and sclang can connect to
that over TCP. it can also connect to other apps over TCP.
but it doesn't do incoming.
amirite ?
--
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.