Actually, I was referring to the work on the BoneBus side. I was able to 
pull this out of bonebus.cpp (if this doesn't format correctly, I send 
the file):

> // [BMLR] Get command from renderer and external programs 
> vector<string>* BoneBusClient::GetCommand() { std::string result = ""; 
> if ( m_sockTCP != NULL ) { fd_set SocketSet; FD_ZERO(&SocketSet); 
> FD_SET(m_sockTCP, &SocketSet); TIMEVAL SelectTime = {0, 0}; int error 
> = select(m_sockTCP + 1, &SocketSet, 0, 0, &SelectTime); if (error > 0) 
> { char b[10000]; // Todo: use a while loop instead int bytesRecv = 
> recv(m_sockTCP, b, sizeof(b), 0); if (bytesRecv > 0) { 
> result.append(b); result = result.substr(0, bytesRecv); } } } if 
> (result.length() > 0) { vector<string>* results = new 
> vector<string>(); BoneBusServer::Tokenize(result, *results, "\r\r\r"); 
> // we use \r\r\r as a separator between commands :) return results; } 
> return NULL; } // [BMLR] Send text to speak to the renderer void 
> BoneBusClient::SendSpeakText( const unsigned int msgNumber, const char 
> * agent, const char * text ) { if ( !IsOpen() ) { return; } char 
> b[512]; int blen; sprintf( b, "SpeakText|%d|%s|%s;", msgNumber, agent, 
> text); blen = (int)strlen( b ); int bytesSent = send( m_sockTCP, 
> (const char *)b, blen, 0 ); if (bytesSent < 0) { int errnum = 
> WSAGetLastError(); printf( "socket error: %d\n", errnum ); } } // 
> [BMLR] Sends create pawn requests to renderer void 
> BoneBusClient::SendCreatePawn(std::string name, double locx, double 
> locy, double locz) { if ( !IsOpen() ) { return; } char b[1024]; int 
> blen; sprintf( b, "CreatePawn|%s|%f|%f|%f;", name.c_str(), 
> (float)locx, (float)locy, (float)locz); blen = (int)strlen( b ); int 
> bytesSent = send( m_sockTCP, (const char *)b, blen, 0 ); if (bytesSent 
> < 0) { int errnum = WSAGetLastError(); printf( "socket error: %d\n", 
> errnum ); } }


So we have new commands, handled as strings, rather than a general 
infrastructure, which is fine.

Bjarni Þór wrote:
> Ps, pitty that you weren't at ISI when I came by the other day... Also 
> could've met up with you at SIGGRAPH but didn't see the mail until too 
> late! I'll have to stop by ISI soon again... Are you going to Tokyo 
> for IVA?


I didn't even know you were in town. If we don't run into each other 
next week, I will be at IVA. Anyone else want to meet up there?


Anm


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Smartbody-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartbody-developer

Reply via email to