Overview
Comment: | Correctly handle stream restart. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
758ecec9ee9b74b2aa16de7c858d7837 |
User & Date: | js on 2011-04-23 22:41:18 |
Other Links: | manifest | tags |
Context
2011-04-25
| ||
17:48 | Move all roster handling code to XMPPRoster. check-in: 55e37a4da2 user: js tags: trunk | |
2011-04-23
| ||
22:41 | Correctly handle stream restart. check-in: 758ecec9ee user: js tags: trunk | |
20:40 | Adjust to recent ObjFW changes. check-in: d7038ec36d user: js tags: trunk | |
Changes
Modified src/XMPPConnection.h from [72439fbdc3] to [2a89c085aa].
︙ | |||
71 72 73 74 75 76 77 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | - - + + | */ @interface XMPPConnection: OFObject #ifdef OF_HAVE_OPTONAL_PROTOCOLS <OFXMLParserDelegate, OFXMLElementBuilderDelegate> #endif { OFTCPSocket *sock; |
︙ |
Modified src/XMPPConnection.m from [9e2fd410e9] to [c97c429eb9].
︙ | |||
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - - - - - - - | - init { self = [super init]; @try { sock = [[OFTCPSocket alloc] init]; |
︙ | |||
234 235 236 237 238 239 240 241 242 243 244 245 246 247 | 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | + + + + + + + + + + | { if (length < 1 && [delegate respondsToSelector: @selector(connectionWasClosed:)]) [delegate connectionWasClosed: self]; [parser parseBuffer: buffer withLength: length]; if (oldParser != nil) { [oldParser release]; oldParser = nil; } if (oldElementBuilder != nil) { [oldElementBuilder release]; oldElementBuilder = nil; } } - (OFTCPSocket*)socket { return [[sock retain] autorelease]; } |
︙ | |||
256 257 258 259 260 261 262 | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 | - + - - + - - - - + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + | return [OFString stringWithFormat: @"objxmpp_%u", lastID++]; } - (void)parser: (OFXMLParser*)p didStartElement: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns |
︙ | |||
477 478 479 480 481 482 483 | 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | - + | sock = newSock; if ([delegate respondsToSelector: @selector(connectionDidUpgradeToTLS:)]) [delegate connectionDidUpgradeToTLS: self]; /* Stream restart */ |
︙ | |||
516 517 518 519 520 521 522 | 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 | - + | dataArrayWithBase64EncodedString: [element stringValue]]]; if ([delegate respondsToSelector: @selector(connectionWasAuthenticated:)]) [delegate connectionWasAuthenticated: self]; /* Stream restart */ |
︙ |