SetTCPSendBufferSize implements inet.Stack.SetTCPSendBufferSize.
(size inet.TCPBufferSize)
| 741 | |
| 742 | // SetTCPSendBufferSize implements inet.Stack.SetTCPSendBufferSize. |
| 743 | func (s *Stack) SetTCPSendBufferSize(size inet.TCPBufferSize) error { |
| 744 | ss := tcpip.TCPSendBufferSizeRangeOption{ |
| 745 | Min: size.Min, |
| 746 | Default: size.Default, |
| 747 | Max: size.Max, |
| 748 | } |
| 749 | return syserr.TranslateNetstackError(s.Stack.SetTransportProtocolOption(tcp.ProtocolNumber, &ss)).ToError() |
| 750 | } |
| 751 | |
| 752 | // TCPSACKEnabled implements inet.Stack.TCPSACKEnabled. |
| 753 | func (s *Stack) TCPSACKEnabled() (bool, error) { |
nothing calls this directly
no test coverage detected