Re: [Quickfix-developers] Session::send
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-08-15 17:29:19
|
Nope, this should likely be a reference. --oren ----- Original Message ----- From: "Alexey Zubko" <ale...@in...> To: <qui...@li...> Sent: Thursday, August 11, 2005 4:12 PM Subject: [Quickfix-developers] Session::send > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, > > I use the latest release and I've just noted that Session::send gets > string not by reference > but creates a new object on a stack: Session::send( const std::string > string ) > > Is there a reason for that? > I use FIX::Session::sendToTarget to send messages: > > FIX::Session::sendToTarget(msg, m_SessionID) > ... > bool Session::sendRaw( Message& message, int num ) > .... > std::string messageString; > ... > message.toString( messageString ); > ... > result = send( messageString ); => Creates a new object on the > stack > ... > socket_send( int s, const char* msg, int length ) => system call > > > Thanks. > > -- > > Regards, > Alexey Zubko > > Infinium Capital Corporation > (416) 360-7000 ext. 305 > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |