Darien Raymond 7 년 전
부모
커밋
e35e3e6e53
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      transport/internet/sockopt_darwin.go

+ 4 - 1
transport/internet/sockopt_darwin.go

@@ -7,8 +7,11 @@ import (
 )
 
 const (
-	TCP_FASTOPEN        = 0x105
+	// TCP_FASTOPEN is the socket option on darwin for TCP fast open.
+	TCP_FASTOPEN = 0x105
+	// TCP_FASTOPEN_SERVER is the value to enable TCP fast open on darwin for server connections.
 	TCP_FASTOPEN_SERVER = 0x01
+	// TCP_FASTOPEN_CLIENT is the value to enable TCP fast open on darwin for client connections.
 	TCP_FASTOPEN_CLIENT = 0x02
 )