mpusher / mpush-client-oc Goto Github PK
View Code? Open in Web Editor NEWMpush Client Object-C
License: Apache License 2.0
Mpush Client Object-C
License: Apache License 2.0
给同一用户在同一时间发送五条消息,抓包显示收到了五条,但是mpush只接收到了一条或两条。这是什么原因,怎么设置那? SOS
-(void)socket:(GCDAsyncSocket *)socket didConnectToHost:(NSString *)host port:(uint16_t)port{
NSMutableDictionary *settings = [[NSMutableDictionary alloc] init];
[settings setObject:[NSNumber numberWithBool:YES]
forKey:GCDAsyncSocketManuallyEvaluateTrust];
[self.socket startTLS:settings];
}
在原有基础上增加上面代码,还是无法正常访问https server,
求助,怎么利用socket连接HTTPS请求?
2、需要更换与服务对应的 IP地址 和 MessageDataPacketTool.h文件中的pubkey(握手时RSA加密所需的公钥)
当数据过大的时候,数组越界,crash
Hi 您好,mpush 的 oc 客户端 demo 点击连接后,请求超时,是服务器的问题吗?谢谢。
NSData *bodyData = [data subdataWithRange:NSMakeRange(13, length)];
length有时候会越界
捕获日志如下:
*************** 19-02-28 21:33:30 *******************
callStackSymbols - 当前栈信息:
0 CoreFoundation 0x00000002290f7eb8 <redacted> + 252
1 libobjc.A.dylib 0x00000002282c9a40 objc_exception_throw + 56
2 CoreFoundation 0x0000000228ffe674 <redacted> + 0
3 Foundation 0x0000000229ae33a4 <redacted> + 252
4 MonoEnglishParty 0x0000000104d93434 -[RFIReader readData:] + 160
5 MonoEnglishParty 0x0000000104d93560 -[RFIReader readData] + 76
6 MonoEnglishParty 0x0000000104d1daac -[MPHandshakeOkMessage decodeWithBody:] + 176
7 MonoEnglishParty 0x0000000104e46354 -[MPBaseMessage decodeBody] + 1040
8 MonoEnglishParty 0x0000000104d1abac -[MPBaseMessageHandle handleWithPacket:] + 108
9 MonoEnglishParty 0x0000000104d36948 __39-[MPMessageDispatcher onReceivePacket:]_block_invoke + 52
10 libdispatch.dylib 0x0000000106903824 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x0000000106904dc8 _dispatch_client_callout + 16
12 libdispatch.dylib 0x000000010690ce6c _dispatch_lane_serial_drain + 720
13 libdispatch.dylib 0x000000010690db60 _dispatch_lane_invoke + 460
14 libdispatch.dylib 0x0000000106917bfc _dispatch_workloop_worker_thread + 1220
15 libsystem_pthread.dylib 0x0000000228d140dc _pthread_wqthread + 312
16 libsystem_pthread.dylib 0x0000000228d16cec start_wqthread + 4
reason - 崩溃原因:
*** -[NSConcreteMutableData subdataWithRange:]: range {2, 4294958267} exceeds data length 80
name - 异常类型:
NSRangeException
不知道有木有遇到同样问题的小伙伴,希望指点一二
mpush对 粘包 怎么处理啊
我已经模仿Android完成了踢下线的功能 烦请介绍下iOS demo了没有的消息类型的使用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.