TCP socket setting in Objective C

319 Views Asked by At

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!

1

There are 1 best solutions below

0
AudioBubble On

setSockopt() function in C is working!

You can set receive buffer size in IOS like this;

setSockopt(SOL_SOCKET, SO_REVBUF, &buf, sizeof(buf));