Skip to content

Instantly share code, notes, and snippets.

@rajatkhanduja
Created March 8, 2012 06:58
Show Gist options
  • Save rajatkhanduja/1999291 to your computer and use it in GitHub Desktop.
Save rajatkhanduja/1999291 to your computer and use it in GitHub Desktop.
Patch for multithreaded UDP client-server to add .gitignore and remove obj/executable files.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..42f2eb97deb421f3acfbb2653524767da65d2300
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.o
+client/client
+server/server
diff --git a/client/client b/client/client
deleted file mode 100755
index b1d0a3e16edd15b71f19eb881fdb9cd0a6516b34..0000000000000000000000000000000000000000
Binary files a/client/client and /dev/null differ
diff --git a/client/client.o b/client/client.o
deleted file mode 100644
index 655d7c175cef5f730b2eeed2c0c9f9f0878cfb62..0000000000000000000000000000000000000000
Binary files a/client/client.o and /dev/null differ
diff --git a/client/client_func.o b/client/client_func.o
deleted file mode 100644
index b093e5d36183e412d12710045de325e5f66a3593..0000000000000000000000000000000000000000
Binary files a/client/client_func.o and /dev/null differ
diff --git a/client/makefile b/client/makefile
index d3c0ba13e2eb33a90e145157b6c3bffaa31b8c4a..f0d0cea835d6ff10b3d94136a1ab39e631e1c750 100644
--- a/client/makefile
+++ b/client/makefile
@@ -6,3 +6,6 @@ client_func.o:
g++ -c client_func.c -o client_func.o
packet.o:
g++ -c packet.c -o packet.o
+clean:
+ rm -f client
+ rm -f *.o
diff --git a/client/packet.o b/client/packet.o
deleted file mode 100644
index b4241a5e1901e6f5dbf01cdc64d1e02f46b1cb48..0000000000000000000000000000000000000000
Binary files a/client/packet.o and /dev/null differ
diff --git a/server/makefile b/server/makefile
index cc7c26769fe7848faaf9a61d993727278f1cf98d..e7566ec3c824d283601f28ad6c65b1965228bc5c 100644
--- a/server/makefile
+++ b/server/makefile
@@ -8,3 +8,6 @@ thread.o: server_func.o packet.o
g++ -c thread.c -o thread.o
server.o: thread.o server_func.o packet.o
g++ -lpthread -c server.c -o server.o
+clean:
+ rm -f server
+ rm -f *.o
diff --git a/server/packet.o b/server/packet.o
deleted file mode 100644
index 77746c0d7569d0dbfc08a17bdf5545ce2e6309d0..0000000000000000000000000000000000000000
Binary files a/server/packet.o and /dev/null differ
diff --git a/server/server b/server/server
deleted file mode 100755
index c3f3d3b7635898721d5a65a96408b72aed476854..0000000000000000000000000000000000000000
Binary files a/server/server and /dev/null differ
diff --git a/server/server.o b/server/server.o
deleted file mode 100644
index b22356f20e86a2346cd2684f2e3cb56a8c6290cf..0000000000000000000000000000000000000000
Binary files a/server/server.o and /dev/null differ
diff --git a/server/server_func.o b/server/server_func.o
deleted file mode 100644
index a50994955f7fb8f1cc1818daf7be0551bf0f3ab5..0000000000000000000000000000000000000000
Binary files a/server/server_func.o and /dev/null differ
diff --git a/server/thread.o b/server/thread.o
deleted file mode 100644
index 14a6d6c34c98c3fb19d6db6cfdda57a3daffe6f4..0000000000000000000000000000000000000000
Binary files a/server/thread.o and /dev/null differ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment