311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
{
if (length < 1) {
[delegates broadcastSelector: @selector(connectionWasClosed:)
withObject: self];
return;
}
[parser parseBuffer: buffer
length: length];
[oldParser release];
[oldElementBuilder release];
oldParser = nil;
oldElementBuilder = nil;
}
|
>
|
|
>
>
>
>
>
|
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
|
{
if (length < 1) {
[delegates broadcastSelector: @selector(connectionWasClosed:)
withObject: self];
return;
}
@try {
[parser parseBuffer: buffer
length: length];
} @catch (OFMalformedXMLException *e) {
[self XMPP_sendStreamError: @"bad-format"
text: nil];
[self close];
}
[oldParser release];
[oldElementBuilder release];
oldParser = nil;
oldElementBuilder = nil;
}
|