teimarin Cdt

Registrado: 02 May 2003Mensajes: 3
|
Publicado: Mar 06 May, 2003 5:52 am Asunto: TIdConnectionIntercept & TSteam |
|
|
Hola grupo:
Estoy tratando de sobre escribir el metodo sendData del TIDConnectionIntercept para poder ver los datos entre un cliente y un server. El problema es que no se como utilizar el Stream. Yo tengo lo sig.
virtual void __fastcall DataReceived(void *ABuffer, const int AByteCount)
{
TMemoryStream *buff = static_cast<TMemoryStream *>(ABuffer);
buff->SetSize(AByteCount);
printf("dataReceived BuffSize %i\n", buff->Size);
TIdConnectionIntercept::DataReceived(ABuffer, AByteCount);
}
pero no funciona. ¿Como debo inicializar mi TMemoryStream?, o como leo el buffer???
GRACIAS
TMM |
|