<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Zeichensatz an Master Server]]></title><description><![CDATA[<p>Hi,<br />
Ich möchte gerne eine Abfrage des Half-Life Master Servers machen dazu hab ich folgende Doku:<br />
<a href="http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol" rel="nofollow">http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol</a><br />
Nur kapier ich jetzt nichr ganz was ich mit send da hinschicken muss, bis jetzt hab ich: &quot;0xFF\type\d\secure\1&quot; jedoch bekomme ich nur ein paar leerzeichen und eine Null am Schluss herraus?<br />
Wie muss ich das richtig machen?</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199185/zeichensatz-an-master-server</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 07:10:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199185.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2007 17:51:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 29 Nov 2007 17:51:10 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich möchte gerne eine Abfrage des Half-Life Master Servers machen dazu hab ich folgende Doku:<br />
<a href="http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol" rel="nofollow">http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol</a><br />
Nur kapier ich jetzt nichr ganz was ich mit send da hinschicken muss, bis jetzt hab ich: &quot;0xFF\type\d\secure\1&quot; jedoch bekomme ich nur ein paar leerzeichen und eine Null am Schluss herraus?<br />
Wie muss ich das richtig machen?</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412480</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Thu, 29 Nov 2007 17:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 29 Nov 2007 21:03:36 GMT]]></title><description><![CDATA[<p>Steht dort doch ziemlich genau...<br />
0x31,0xFF,&quot;0.0.0.0:0&quot;,0x00,&quot;\type\d\secure\1&quot;,0x00</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412593</guid><dc:creator><![CDATA[Nanyuki]]></dc:creator><pubDate>Thu, 29 Nov 2007 21:03:36 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Fri, 30 Nov 2007 14:47:46 GMT]]></title><description><![CDATA[<p>Hi,<br />
Danke für deine Antwort!</p>
<p>Wie muss ich das denn nun Senden?<br />
Weil da steht was von Binär und so, leider bin ich da drin noch nicht so fit.<br />
Also ich weiß was Binär ist aber nicht wie ich es anwende!<br />
Müsste ich das dann alles auf einmal senden?</p>
<p>Danke für eure Geduld.<br />
MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412989</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Fri, 30 Nov 2007 14:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Fri, 30 Nov 2007 16:08:23 GMT]]></title><description><![CDATA[<p>Da es sich um UDP handelt, musst du die Nachricht vermutlich als Ganzes verschicken, sonst wird dir der Server das nicht verzeihen.<br />
Den Buffer kannst du &quot;binär&quot; z.B. so füllen (wenn es sich um C oder eine ähnliche Sprache handelt):</p>
<pre><code class="language-cpp">buffer[0]=0x31;
buffer[1]=0xFF;
//und danach die beiden Strings
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1413045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413045</guid><dc:creator><![CDATA[Nanyuki]]></dc:creator><pubDate>Fri, 30 Nov 2007 16:08:23 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 17:39:13 GMT]]></title><description><![CDATA[<p>Hi,<br />
Stimmt das so?:</p>
<pre><code class="language-cpp">char masterquery1[256];
masterquery1[0] = 0x31;
masterquery1[1] = 0x03;
strcat(masterquery1,&quot;0.0.0.0:0\0&quot;);
strcat(masterquery1,&quot;\\type\\d\\secure\\1\0&quot;);
</code></pre>
<p>Das char array schicke ich so an den server und bekomme dann eine unleserliche Zeichnekette zurück, die ich unter debian nicht lesen kann!</p>
<p>MFG ReduX :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420095</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Thu, 13 Dec 2007 17:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 17:48:36 GMT]]></title><description><![CDATA[<p>Nein! strcat erwartet zwei C-Strings (also 0-terminierte Daten!). Wie soll es sonst wissen, wo mit dem anfügen begonnen werden sollte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420103</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Thu, 13 Dec 2007 17:48:36 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 18:02:53 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich kann dir nicht ganz folgen.<br />
Die beiden strings/Zeichenketten werden am Schluss doch mit \0 terminiert.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420116</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Thu, 13 Dec 2007 18:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 18:09:43 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">strcat(masterquery1,&quot;0.0.0.0:0\0&quot;);
</code></pre>
<p>und wo ist masterquery1 0-terminiert? Und du weißt, dass strcat nur bis zur ersten 0-Terminierung kopiert?</p>
<p>Was du willst ist wohl eher</p>
<pre><code class="language-cpp">memcpy(masterquery1 + 2, &quot;0.0.0.0:0&quot;, sizeof(&quot;0.0.0.0:0&quot;));
</code></pre>
<p>siehe <a href="http://man.cx/memcpy" rel="nofollow">man: memcpy</a> und <a href="http://man.cx/strcat" rel="nofollow">man: strcat</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420122</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Thu, 13 Dec 2007 18:09:43 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 18:39:53 GMT]]></title><description><![CDATA[<p>Hmm aber wenn ich nun:</p>
<pre><code class="language-cpp">char masterquery1[256];
masterquery1[0] = 0x31;
masterquery1[1] = 0x03;
memcpy(masterquery1 + 2, &quot;0.0.0.0:0&quot;, sizeof(&quot;0.0.0.0:0&quot;));
memcpy(masterquery1 + 11, &quot;\\type\\d\\secure\\1&quot;, sizeof(&quot;\\type\\d\\secure\\1&quot;));
</code></pre>
<p>hinschicke ist die Zeichenkette auch nicht lesbar?!?</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420138</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Thu, 13 Dec 2007 18:39:53 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 13 Dec 2007 18:59:26 GMT]]></title><description><![CDATA[<p>was heißt überhaupt &quot;nicht lesbar&quot;? Lass dir die empfangenen Daten einmal als Zahlen ausgeben</p>
<pre><code class="language-cpp">ssize_t n = recv(s, buffer, buffer_len, flags);
if(n &lt; 0)
  fehler();
else for(size_t i = 0; i &lt; (size_t)n; ++i)
  cout &lt;&lt; hex &lt;&lt; (unsigned)buffer[i] &lt;&lt; ' ';
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1420152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420152</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Thu, 13 Dec 2007 18:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Fri, 14 Dec 2007 13:40:32 GMT]]></title><description><![CDATA[<p>Hi,<br />
Wenn ich das mit Hex ausgebe bekomme ich sowas wie:</p>
<pre><code>ffffff87
3e
4b
ffffff8d
59
ffffffea
62
ffffffd9
ffffffa3
1e
ffffffd0
69
ffffff87
3e
4b
ffffff8d
59
69
ffffff87
ffffffd9
ffffffa3
1e
ffffffcf
69
ffffff87
3e
4b
ffffff8f
2a
69
ffffffd2
3e
4b
ffffff8f
43
69
ffffff87
0
</code></pre>
<p>Nur wie kann ich das jetzt in ips und ports transverieren? Kenne mich mit Hex zeugs da nicht so aus.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420543</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Fri, 14 Dec 2007 13:40:32 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Fri, 14 Dec 2007 20:44:56 GMT]]></title><description><![CDATA[<p>Bzw noch:<br />
Laut doku kommen ja bytes an und beim empfangen wird ja alles in ein char array geschrieben. Dann müsste es das Byte ja automatisch in ASCII umwandeln oder?<br />
Wenn ich aber was ausgebe aus dem char array ist es wie beschrieben nicht lesbar bzw. es wird ein Fragezeichen angezeigt.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420783</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420783</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Fri, 14 Dec 2007 20:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichensatz an Master Server on Thu, 20 Dec 2007 17:00:26 GMT]]></title><description><![CDATA[<p>Hat den keiner eine Idee?<br />
Habe schon überall geschaut aber nichts gefunden.</p>
<p>MFG ReduX :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1423961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1423961</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Thu, 20 Dec 2007 17:00:26 GMT</pubDate></item></channel></rss>