Closed YowFung closed 3 years ago
You can set arbitrary socket options through setRawOption
which takes an instance of RawSocketOption
, you just need to use correct values for level
and option
, e.g. on Android I think this will be RawSocketOption.fromInt(/*SOL_SOCKET*/ 1, /*SO_RCVBUF*/ 8, bufSize)
on iOS that would be RawSocketOption.fromInt(/*SOL_SOCKET*/ 0xFFFF, /*SO_RCVBUF*/ 0x1002, bufSize)
(but you should double check respective socket.h
headers on each of those platforms).
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Only the
tcpNoDelay
is supported? How do I set other socket option names such asSO_RCVBUF
?In file
<Flutter SDK>/bin/cache/pkg/sky_engine/lib/io/socket.dart