UDP byte array examples?

Talk about anything concerning the source code.
Post Reply
talldrinks
Posts: 9
Joined: Wed Aug 02, 2017 6:55 pm

UDP byte array examples?

Post by talldrinks » Fri Sep 29, 2017 7:59 pm

Hi!
Are there any examples posted of what the byte array should look like in the UDP data over network API?

I see the page outlining the byte values and such but I'm just learning bytes and UDP actually.

I see there is a header required as well:
"The byte array must contain a header (type + length) and the axis values."

Any help appreciated!
I basically just want to send a test packet over UDP from my C# app, which represents some xbox one buttons and analog axis values.

Thanks!

talldrinks
Posts: 9
Joined: Wed Aug 02, 2017 6:55 pm

Re: UDP byte array examples?

Post by talldrinks » Wed Oct 04, 2017 6:11 pm

I found this post with the example I was looking for. thanks!

viewtopic.php?f=3&t=1163&p=7557&hilit=byte+array#p7557

User avatar
Matlo
Posts: 4463
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: UDP byte array examples?

Post by Matlo » Sun Oct 08, 2017 12:32 pm

Note that the format will change from GIMX 7.
The new format is described here: https://github.com/matlo/gimx-network-p ... protocol.h
GIMX creator Donate Shop

Post Reply