Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to Send Multiple UTFBytes Over Socket?

Explorer ,
Apr 18, 2015 Apr 18, 2015

So after searching around for days on Google and getting no answer, I figured I'd ask how to send multiple messages to a socket. I use the method writeUTFBytes and readUTFBytes, but it only sends and listens to one message over at a time. This is important for what I'm trying to do because I'm trying to send over messages of keys being pressed by the clients. Obviously multiple keys are pressed at a time, so it needs to be able to send a couple messages over in one. I tried making an array but you can't send those over using writeUTF or writeUTFBytes because it returns an error saying I need to use a string. Any ideas? Thank you.

TOPICS
ActionScript
185
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation