Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void CommunicatingSocket::send ( const void *  buffer,
int  bufferLen 
) throw (SocketException)

Write the given buffer to this socket.

Call connect() before calling send()

Parameters:
buffer buffer to be written
bufferLen number of bytes from buffer to be written
Exceptions:
SocketException thrown if unable to send data

Definition at line 196 of file PracticalSocket.cpp.

Referenced by Impala::Application::Videolympics::ServerConnector::Connect(), Impala::Core::Trec::TextSearchConnector::Query(), Impala::Application::Videolympics::VideolympicsClient::SendShot(), and Impala::Application::Videolympics::ServerConnector::Update().

00197                            {
00198 #ifdef WIN32
00199   if (::send(sockDesc, (raw_type *) buffer, bufferLen, 0) < 0) {
00200 #else
00201   if (::send(sockDesc, (raw_type *) buffer, bufferLen, MSG_NOSIGNAL) < 0) {
00202 #endif
00203     throw SocketException("Send failed (send())", true);
00204   }
00205 }


Generated on Fri Mar 19 10:32:01 2010 for ImpalaSrc by  doxygen 1.5.1