diff --git a/TP1/pipes/Makefile b/TP1/pipes/Makefile index 6593f17..ddd07b8 100644 --- a/TP1/pipes/Makefile +++ b/TP1/pipes/Makefile @@ -10,7 +10,7 @@ TARGET = producer_consumer all: $(TARGET) $(TARGET): $(TARGET).cpp - $(CC) $(CFLAGS) -o $(TARGET) ../lib/MyLib.cpp ../lib/MyLib.h $(TARGET).cpp + $(CC) $(CFLAGS) -o $(TARGET) ../../lib/MyLib.cpp ../../lib/MyLib.h $(TARGET).cpp clean: $(RM) $(TARGET) \ No newline at end of file diff --git a/TP1/pipes/producer_consumer b/TP1/pipes/producer_consumer new file mode 100755 index 0000000..64e62f2 Binary files /dev/null and b/TP1/pipes/producer_consumer differ diff --git a/TP1/pipes/producer_consumer.cpp b/TP1/pipes/producer_consumer.cpp index 64c6ef9..ed51bd1 100644 --- a/TP1/pipes/producer_consumer.cpp +++ b/TP1/pipes/producer_consumer.cpp @@ -5,7 +5,7 @@ #include #include #include -#include "../lib/MyLib.h" +#include "../../lib/MyLib.h" using namespace std; diff --git a/TP1/signals/signal_receiver b/TP1/signals/signal_receiver new file mode 100755 index 0000000..9525b97 Binary files /dev/null and b/TP1/signals/signal_receiver differ diff --git a/TP1/signals/signal_sender b/TP1/signals/signal_sender new file mode 100755 index 0000000..a708082 Binary files /dev/null and b/TP1/signals/signal_sender differ diff --git a/TP1/sockets/Makefile b/TP1/sockets/Makefile index ccc4342..a1185d2 100644 --- a/TP1/sockets/Makefile +++ b/TP1/sockets/Makefile @@ -11,7 +11,7 @@ TARGET_TWO = producer all: $(TARGET_ONE) $(TARGET_TWO) $(TARGET_ONE): $(TARGET_ONE).cpp - $(CC) $(CFLAGS) -o $(TARGET_ONE) ../lib/MyLib.cpp ../lib/MyLib.h $(TARGET_ONE).cpp + $(CC) $(CFLAGS) -o $(TARGET_ONE) ../../lib/MyLib.cpp ../../lib/MyLib.h $(TARGET_ONE).cpp $(TARGET_TWO): $(TARGET_TWO).cpp $(CC) $(CFLAGS) -o $(TARGET_TWO) $(TARGET_TWO).cpp diff --git a/TP1/sockets/consumer b/TP1/sockets/consumer new file mode 100755 index 0000000..d3eb49a Binary files /dev/null and b/TP1/sockets/consumer differ diff --git a/TP1/sockets/consumer.cpp b/TP1/sockets/consumer.cpp index 8dc4776..1506a1d 100644 --- a/TP1/sockets/consumer.cpp +++ b/TP1/sockets/consumer.cpp @@ -9,7 +9,7 @@ #include #include #include -#include "../lib/MyLib.h" +#include "../../lib/MyLib.h" #define PORT 8080 diff --git a/TP1/sockets/producer b/TP1/sockets/producer new file mode 100755 index 0000000..1ae6cbf Binary files /dev/null and b/TP1/sockets/producer differ diff --git a/TP1/tests/pipes_test.jpg b/TP1/tests/pipes_test.jpg new file mode 100644 index 0000000..3b2fcdb Binary files /dev/null and b/TP1/tests/pipes_test.jpg differ diff --git a/TP1/tests/signal_receiver_all_cases.jpg b/TP1/tests/signal_receiver_all_cases.jpg new file mode 100644 index 0000000..93c400e Binary files /dev/null and b/TP1/tests/signal_receiver_all_cases.jpg differ diff --git a/TP1/tests/signal_receiver_blocking_waiting.jpg b/TP1/tests/signal_receiver_blocking_waiting.jpg new file mode 100644 index 0000000..ae2c032 Binary files /dev/null and b/TP1/tests/signal_receiver_blocking_waiting.jpg differ diff --git a/TP1/tests/signal_receiver_busy_waiting.jpeg b/TP1/tests/signal_receiver_busy_waiting.jpeg new file mode 100644 index 0000000..0dd74b0 Binary files /dev/null and b/TP1/tests/signal_receiver_busy_waiting.jpeg differ diff --git a/TP1/tests/sockets_test.jpg b/TP1/tests/sockets_test.jpg new file mode 100644 index 0000000..37b8de3 Binary files /dev/null and b/TP1/tests/sockets_test.jpg differ diff --git a/TP1/tests/sockets_without_server.jpg b/TP1/tests/sockets_without_server.jpg new file mode 100644 index 0000000..9ae4e4e Binary files /dev/null and b/TP1/tests/sockets_without_server.jpg differ diff --git a/TP1/lib/MyLib.cpp b/lib/MyLib.cpp similarity index 100% rename from TP1/lib/MyLib.cpp rename to lib/MyLib.cpp diff --git a/TP1/lib/MyLib.h b/lib/MyLib.h similarity index 100% rename from TP1/lib/MyLib.h rename to lib/MyLib.h