瀏覽代碼

Add netinet/tcp.h

Jeremy Soller 6 年之前
父節點
當前提交
aa069b3e0b
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 7 0
      src/header/netinet_tcp/cbindgen.toml
  2. 3 0
      src/header/netinet_tcp/mod.rs

+ 7 - 0
src/header/netinet_tcp/cbindgen.toml

@@ -0,0 +1,7 @@
+sys_includes = []
+include_guard = "_NETINET_TCP_H"
+language = "C"
+style = "Tag"
+
+[enum]
+prefix_with_name = true

+ 3 - 0
src/header/netinet_tcp/mod.rs

@@ -0,0 +1,3 @@
+use platform::types::*;
+
+pub const TCP_NODELAY: c_int = 1;