Browse Source

Add netinet/tcp.h

Jeremy Soller 6 years ago
parent
commit
aa069b3e0b
2 changed files with 10 additions and 0 deletions
  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;