greve and I are saying mostly the same thing. Try:
Code:
if ( 0 == strcmp( buf, "something" ) )
{
  cout << "something was received";
}
Mike