On 11. Feb 2010, at 23:23, davidotcom [via Software] wrote:

> Hi again, 
> 
> I've been trying to send extra data into the packet, but I'm not sure how to 
> grab the "extra" data from the other end once I call: 
> 
> Session::send (NodePtr node, SessionPacket &packet, const std::string &text) 
> 
> 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. 
> 
> Any thoughts? 

>From connection.h:

         * 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.
_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to