aboutsummaryrefslogtreecommitdiff
path: root/libraries/ethernet/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ethernet/socket.h')
-rw-r--r--libraries/ethernet/socket.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/ethernet/socket.h b/libraries/ethernet/socket.h
new file mode 100644
index 0000000..c6efa90
--- /dev/null
+++ b/libraries/ethernet/socket.h
@@ -0,0 +1,27 @@
+#ifndef _SOCKET_H_
+#define _SOCKET_H_
+
+/**
+ * @brief socket operations
+ */
+
+#ifdef __cplusplus
+extern "C"{
+#endif
+
+
+enum sock_type {
+ SOCK_STREAM = 0x1,
+ SOCK_DGRAM = 0x2
+};
+
+int32 socket(int32 type);
+int32 bind(int32 sockfd, uint16 port);
+int32 listen(int32 sockfd);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+