Hi everybody,
I need for my project a simple TCP module who can send and receive some bytes, like the UDP module, but not in UDP because I can't have real acknowledgement.
How can I do this ? Have you got a solution?
Thanks
Best regards
TCP network module
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
What protocol do you use ?
Actually there is no TCP in Usine, but planed in future versions.
Actually there is no TCP in Usine, but planed in future versions.
Olivier Sens
www.brainmodular.com
www.brainmodular.com
-
stefkpl06
- New member
- Posts: 4
Im' not use a real protocol, only simple low level TCP protocol.
I just want to send byte(s) and receive byte(s).
For exemple, if I design a wireless object. I would like send and receive simple command with acknowledgement from TCP low level socket.
In UDP, I must implement ack and I can have some packets lost:( so I'm not sure if the command is ok.
The best thing for me will can be, target IP/Port and source IP/Port with is data like this : PARAM INT(64bits) / VALUE INT(64bits).
Am I clear?
Thank's
Note, I can't use OSC protocole for the same reason.
I just want to send byte(s) and receive byte(s).
For exemple, if I design a wireless object. I would like send and receive simple command with acknowledgement from TCP low level socket.
In UDP, I must implement ack and I can have some packets lost:( so I'm not sure if the command is ok.
The best thing for me will can be, target IP/Port and source IP/Port with is data like this : PARAM INT(64bits) / VALUE INT(64bits).
Am I clear?
Thank's
Note, I can't use OSC protocole for the same reason.
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
On a good local network UDP is very efficient and the probability of losing a packet is less than 1 by billions ?
Olivier Sens
www.brainmodular.com
www.brainmodular.com
- oli_lab
- Member
- Posts: 1286
- Location: Brittany, France
- Contact:
while waiting for TCP in a future HH version, you still can use UDP and send redundant messages.
WIFI can be tricky !
here's what I do with OSC when I need reliability :
switch send message once press and depress, AND send message every second when not pressed.
WIFI can be tricky !
here's what I do with OSC when I need reliability :
switch send message once press and depress, AND send message every second when not pressed.
http://oli-lab.org
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
