ConnectingSocket target_socket(SocketAddr("localhost",7));
char buffer[10];
const char send_str [] = "String to send";
assert( target_socket.write(send_str,strlen(send_str)+1) ==
StreamSocket::Good );
StreamSocket::ReadResult result =
target_socket.read(buffer,sizeof(buffer));
assert( result.status == StreamSocket::Good &&
strncmp(send_str,buffer,result.len) == 0 );
//End of File