Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / CreateBroadcastListener - can it be used as general UDP listener?

Author
Message
RodneyG
7
Years of Service
User Offline
Joined: 31st Mar 2017
Location:
Posted: 25th Apr 2017 18:16
I have a UDP server running in an external project sending messages. In my AppGameKit project the BroadcastListener is receiving the messages but the first 4 characters are lost. What is the expected structure of a broadcast message and can it be used in a more general fashion without causing issues for other parts of the AppGameKit system?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Apr 2017 14:24
In theory, yes. The format of a string is a 4 byte length and then X bytes of string data without a null terminator, where X is the length. Integers and floats are standard 4 byte formatting.

Login to post a reply

Server time is: 2024-04-26 22:42:59
Your offset time is: 2024-04-26 22:42:59