I find a method like setReceiveBufferSize()
in Java on Objective C.
I use NSStream for TCP connection but there is no method of any kind of like that. If you know how to set a socket in IOS please comment for me!
Asked
Active
Viewed 262 times
0

Miroslav Glamuzina
- 4,472
- 2
- 19
- 33
-
I will assume you are talking about `NSInputStream` since you mentioned `setReceiveBufferSize()`. Maybe [read:maxLength:](https://developer.apple.com/documentation/foundation/nsinputstream/1411544-read?language=objc) is what you are looking for? – Bill Mar 20 '19 at 02:05
-
@Bill I wanna set socket, not stream. Like timeout, linger,... I also think `read:maxLength:`is close but not working for me... Thank you! – Mar 20 '19 at 02:42