没有合适的资源?快使用搜索试试~ 我知道了~
XMPP解析 解析
资源推荐
资源详情
资源评论
14/12/18 下午11:13xmpp解析 - chenjin360的专栏 - 博客频道 - CSDN.NET
第 1 (共 14 )http://blog.csdn.net/cerastes/article/details/33713967
天地 ios
20154为MVP 10没 --有在中 就过这iPhone 6
xmpp
2014-06-23 10:02 492很你 (1) 会
iOS xmpp 是 能
[objc]
01. //
02. // JXXMPP.m
03. // 能
04. //
05. // Created by cerastes on 13-8-10.
06. // Copyright (c) 2014 <span style="font-family: Arial, Helvetica, sans-
serif;">cerastes</span><span style="font-family: Arial, Helvetica, sans-
serif;">. All rights reserved.</span>
07. //
08. // 能时
09.
10. #import "JXXMPP.h"
11. #import "GCDAsyncSocket.h"
12. #import "XMPP.h"
13. #import "XMPPReconnect.h"
14. #import "XMPPCapabilities.h"
15. #import "DDLog.h"
16. #import "DDTTYLogger.h"
17. #import "XMPPRoster.h"
18. #import "XMPPMessage.h"
19. #import "TURNSocket.h"
20. #import "SBJsonWriter.h"
21. #import "AppDelegate.h"
22. #import "FMDatabase.h"
23. //#import "emojiViewController.h"
24. #import "JXRoomPool.h"
25.
26. #if DEBUG
27. static const int ddLogLevel = LOG_LEVEL_VERBOSE;
28. #else
29. static const int ddLogLevel = LOG_LEVEL_INFO;
30. #endif
31.
32.
33.
34.
35. #define DOCUMENT_PATH NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
[0]
36. #define CACHES_PATH NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)
[0]
37.
38. @implementation JXXMPP
地 地
地 地
cerastes
地
地
地
地
ios
iOS
ios多天
ASIHttpRequest
java_web
uitextfield
Swift
jia
ios
ios
xcode
mac
ios
最 去很
chenjin360
|
23284
1074
17592
67 6
1 18
(55)
(1)
(1)
(1)
(1)
(1)
(1)
(2)
(1)
(0)
(6)
(6)
(1)
(1)
(1)
(2)
(1)
14/12/18 下午11:13xmpp解析 - chenjin360的专栏 - 博客频道 - CSDN.NET
第 2 (共 14 )http://blog.csdn.net/cerastes/article/details/33713967
39. @synthesize stream=xmppStream,isLogined,roomPool;
40. @synthesize friendsListDelegate;
41.
42.
43.
44. static JXXMPP *sharedManager;
45. - (void)saveContext{
46.
47. }
48.
49. -(void)sendFile:(NSData*)aData toJID:(XMPPJID*)aJID{
50.
51. }
52. +(JXXMPP*)sharedInstance{
53. static dispatch_once_t onceToken;
54. dispatch_once(&onceToken, ^{
55. sharedManager=[[JXXMPP alloc]init];
56. sharedManager.isLogined = NO;
57. [DDLog addLogger:[DDTTYLogger sharedInstance]];
58.
59. // [[NSUserDefaults standardUserDefaults]setObject:
[[NSUserDefaults standardUserDefaults]objectForKey:kMY_USER_ID] forKey:kXMPPmyJID];
60. // [[NSUserDefaults standardUserDefaults]setObject:
[[NSUserDefaults standardUserDefaults]objectForKey:kMY_USER_PASSWORD] forKey:kXMPPmyPassword];
61. // [[NSUserDefaults standardUserDefaults]synchronize];
62.
63. [sharedManager setupStream];
64. });
65.
66. return sharedManager;
67. }
68.
69. -(void)login{
70. if(isLogined)
71. return;
72. if (![self connect]) {
73. [g_App showAlert:@"看"];
74. };
75. }
76.
77. -(void)logout{
78. if(!isLogined)
79. return;
80. self.isLogined = NO;
81. [self disconnect];
82. [roomPool deleteAll];
83. [[NSNotificationCenter defaultCenter] postNotificationName:kLoginNotifaction object:
[NSNumber numberWithBool:isLogined]];
84. }
85.
86.
87. - (void)dealloc
88. {
89. [_db close];
90. [_db release];
91. [self teardownStream];
92. [roomPool release];
93. [super dealloc];
94. }
95.
96. - (void)applicationWillTerminate:(UIApplication *)application
97. {
98. // Saves changes in the application's managed object context before the application terminates.
99. }
100.
101. #pragma mark - Application's Documents directory
102.
103. // Returns the URL to the application's Documents directory.
104. - (NSURL *)applicationDocumentsDirectory
105. {
106.
在
201412
201411
201410
201409
201408
Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
ios以
Treating Unicode character as whitespace
下分
NSData NSDate NSString NSArray NSDictionary
家
Mqtt都IOS新2
Mqtt都IOS新1
ios8
xmpp
Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
下分
Treating Unicode character as whitespace
的我
Mqtt都IOS新2
IOS
xcode
registerForRemoteNotificationTypes: is not supported in iOS 8.0 and
ios以
家
*
*
*
*
* Android
* HTTP POST
Java
的我
cerastes: @daimarensheng:
家家
的我
daimarensheng: 我
发 家
~
registerForRemoteNotificationTypes: is not supported in iOS 8.0 and
MAMBA_CSDN: 8.0
xcode
MAMBA_CSDN:
IOS
MAMBA_CSDN:
(10)
(3)
(4)
(10)
(2)
(1459)
(1155)
(905)
(677)
(667)
(579)
(533)
(531)
(518)
(489)
(3)
(3)
(3)
(2)
(2)
(1)
(1)
(1)
(1)
(1)
剩余12页未读,继续阅读
资源评论
tidexyn
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功