No subject


Thu Jul 30 09:02:43 CEST 2009


         * Sends a packaged message including a string using the connection.     
         *                                                                       
         * The packet has to define a 8-byte-aligned, 8-char string at the end   
         * of the packet. When the packet is sent the whole string is appended   
         * to the packet, so that the receiver has to do nothing special to      
         * receive and use the full packet.                                      

Have a look at the NodeConfigInitPacket send by the server, and processed by the client.

I know this is not very programmer-friendly, these parts of the eq::net API are not yet finalized and documented.


Cheers,

Stefan.


-- 
View this message in context: http://n2.nabble.com/Sending-packets-with-string-tp4557831p4560423.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

------=_Part_33873_5046472.1265971404443
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit


<br>On 11. Feb 2010, at 23:23, davidotcom [via Software] wrote:
<br><br>&gt; Hi again, 
<br>&gt; 
<br>&gt; I've been trying to send extra data into the packet, but I'm not sure how to grab the &quot;extra&quot; data from the other end once I call: 
<br>&gt; 
<br>&gt; Session::send (NodePtr node, SessionPacket &packet, const std::string &text) 
<br>&gt; 
<br>&gt; I'm able to grab everything inside the packet, but I have no idea where the other bit went and I can't find any documentation regarding this. 
<br>&gt; 
<br>&gt; Any thoughts? 
<br><br>From connection.h:
<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Sends a packaged message including a string using the connection. &nbsp; &nbsp; 
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* The packet has to define a 8-byte-aligned, 8-char string at the end &nbsp; 
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* of the packet. When the packet is sent the whole string is appended &nbsp; 
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* to the packet, so that the receiver has to do nothing special to &nbsp; &nbsp; &nbsp;
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* receive and use the full packet. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<br><br>Have a look at the NodeConfigInitPacket send by the server, and processed by the client.
<br><br>I know this is not very programmer-friendly, these parts of the eq::net API are not yet finalized and documented.
<br><br><br>Cheers,
<br><br>Stefan.
<br><br>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Sending-packets-with-string-tp4557831p4560423.html">Re: Sending packets with string?</a><br>
Sent from the <a href="http://n2.nabble.com/Equalizer-Parallel-Rendering-f7405.html">Equalizer - Parallel Rendering mailing list archive</a> at Nabble.com.<br>

------=_Part_33873_5046472.1265971404443--



More information about the eq-dev mailing list