Skip to content

Commit

Permalink
moving TP1 stuff, lib and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guim4dev committed Aug 16, 2021
1 parent ef2169e commit 2eefaba
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TP1/pipes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Binary file added TP1/pipes/producer_consumer
Binary file not shown.
2 changes: 1 addition & 1 deletion TP1/pipes/producer_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <string.h>
#include <iostream>
#include <math.h>
#include "../lib/MyLib.h"
#include "../../lib/MyLib.h"

using namespace std;

Expand Down
Binary file added TP1/signals/signal_receiver
Binary file not shown.
Binary file added TP1/signals/signal_sender
Binary file not shown.
2 changes: 1 addition & 1 deletion TP1/sockets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added TP1/sockets/consumer
Binary file not shown.
2 changes: 1 addition & 1 deletion TP1/sockets/consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include "../lib/MyLib.h"
#include "../../lib/MyLib.h"

#define PORT 8080

Expand Down
Binary file added TP1/sockets/producer
Binary file not shown.
Binary file added TP1/tests/pipes_test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TP1/tests/signal_receiver_all_cases.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TP1/tests/signal_receiver_blocking_waiting.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TP1/tests/signal_receiver_busy_waiting.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TP1/tests/sockets_test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TP1/tests/sockets_without_server.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.

0 comments on commit 2eefaba

Please sign in to comment.