Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9045849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:27:55+00:00 2026-06-16T11:27:55+00:00

I perform an UDP request to a server via Ruby. The server’s response is

  • 0

I perform an UDP request to a server via Ruby. The server’s response is mixed content, meaning I get strings, numbers and so on. I know how to interpret the response, but I’m having trouble with strings, since their length can vary. All strings are zero-terminated.

A string can look like this:

[84, 104, 101, 32, 83, 116, 114, 101, 97, 109, 33, 32, 50, 52, 47, 55,
32, 66, 97, 100, 119, 97, 116, 101, 114, 32, 91, 65, 108, 108, 116,
97, 108, 107, 93, 0]

It is encoded in UTF8 and stands for The Stream! 24/7 Badwater [Alltalk].

As already mentioned, there are more bytes in the response, not only a single string like above. All fixed-length content can easily be fetched with string.unpack, but I don’t how how to extract the strings. Do I have to parse the byte-stream manually or is there a way I can continue to use string.unpack?

Edit:

The whole response looks like this: http://paste.org/59395

The protocol details: http://tinyurl.com/bvyepsl

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:27:58+00:00Added an answer on June 16, 2026 at 11:27 am

    Oh I was not able to see the wood for the trees, sorry.

    You easily can extract zero-terminated strings by using a_string.unpack("Z*")

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a tool to perform load testing on a UDP server (using
I am trying to perform a cURL request (either directly from shell or via
I perform an AJAX request to a PHP script in JavaScript and by using
I want to perform an jquery request to php and then I want php
While testing out a UDP multicast server that I've written on Windows 7 Ultimate
Can I perform a UDP broadcast packets on my machine? I don't have a
I perform a query on a table Installation to get a list of Ids
I'm writing a UDP client-server pair for a networks class, and I have hit
I perform an SQL query on a database with MySQL and I get back
I perform a http DELETE request from Javascript to a Java web app. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.