[Quickfix-developers] Session::send
Brought to you by:
orenmnero
|
From: Alexey Z. <ale...@in...> - 2005-08-11 21:12:20
|
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
|