diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Verteilte Systeme/Praktikum1/inet.h | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Verteilte Systeme/Praktikum1/inet.h')
| -rw-r--r-- | Bachelor/Verteilte Systeme/Praktikum1/inet.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Bachelor/Verteilte Systeme/Praktikum1/inet.h b/Bachelor/Verteilte Systeme/Praktikum1/inet.h new file mode 100644 index 0000000..6af7e71 --- /dev/null +++ b/Bachelor/Verteilte Systeme/Praktikum1/inet.h @@ -0,0 +1,19 @@ +/************************************************************************
+ * Definitions for TCP and UDP client/server programs.
+ */
+
+#include <stdio.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <asm/socket.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+
+
+
+
+
+#define SERV_TCP_PORT 9018
+//#define SERV_HOST_ADDR "10.0.0.200" /* host addr for server */
+#define SERV_HOST_ADDR "127.0.0.1" /* Localhost */
|
