21 changed files with 102 additions and 207 deletions
-
3include/tr/comm_end_point.h
-
3include/tr/comm_manager.h
-
14include/tr/interface/comm_manager.h
-
5src/cep_write_buffered.c
-
4src/comm_end_point.c
-
3src/comm_end_point_read.c
-
34src/comm_manager.c
-
43src/comm_manager_epoll.c
-
54src/comm_manager_poll.c
-
4src/connection.c
-
12src/connector.c
-
60src/i_comm_manager.c
-
28src/io_handler.c
-
6src/protocol_handler.c
-
2src/server.c
-
6src/simple_client.c
-
5src/threaded_server.c
-
4testers/build.sh
-
3testers/test_handler.c
-
2testers/testclient.c
-
2testers/testserver2.c
@ -1,10 +1,10 @@ |
|||
#!/bin/bash |
|||
#TRLIBS="-ltrbase -ltrhashing -ltrio -ltrdata -ltrevent -ltrcomm" |
|||
TRLIBS="/usr/local/lib/libtrcomm.a /usr/local/lib/libtrevent.a /usr/local/lib/libtrdata.a /usr/local/lib/libtrio.a /usr/local/lib/libtrhashing.a /usr/local/lib/libtrbase.a" |
|||
LIBS="-lcrypto -lssl -lrt -luuid -lpthread" |
|||
LIBS="-lcrypto -lssl -lrt -luuid" |
|||
gcc ${CFLAGS} -c -o test_handler.o test_handler.c |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -o testserver testserver.c test_handler.o ${TRLIBS} |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -o testserver2 testserver2.c test_handler.o ${TRLIBS} |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -o testtcp testclient.c ${TRLIBS} |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -DUDP=1 -o testudp testclient.c ${TRLIBS} |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -o testserver_thread testserver_thread.c test_handler.o ${TRLIBS} |
|||
gcc ${CFLAGS} -I/usr/local/include -L/usr/local/lib ${LIBS} -lpthread -o testserver_thread testserver_thread.c test_handler.o ${TRLIBS} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue