rename folders and files

This commit is contained in:
HappyZ 2016-09-26 23:24:05 -07:00
parent 979beae8fc
commit 98966095d8
31 changed files with 36 additions and 84 deletions

View File

@ -1,21 +0,0 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_readfile_only
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
all: $(TARGET)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJS)
$(TARGET): $(OBJS)
$(CC) $(OBJS) -Wall $(CFLAGS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)

View File

@ -1,7 +1,7 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_normaltcp_splice
TARGET = client_readfile_only
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

View File

@ -20,18 +20,6 @@
#include <netinet/in.h>
#include <fcntl.h>
// #define ETH_P_IP 0x0800 /* Internet Protocol packet */
// #define ETH_ALEN 6 /* from <net/ethernet.h> */
// #define ETH_P_ALL 0x0003
// #define MY_DEST_MAC0 0xba
// #define MY_DEST_MAC1 0xf6
// #define MY_DEST_MAC2 0xb1
// #define MY_DEST_MAC3 0x71
// #define MY_DEST_MAC4 0x09
// #define MY_DEST_MAC5 0x64
// #define DEFAULT_IF "wlan0"
#define BUF_SIZ 4096
char isNumber(char number[])

View File

@ -1,7 +1,7 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_normaltcp
TARGET = client_send_bypassl3
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

View File

@ -1,7 +1,7 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_normaludp
TARGET = client_send_normaltcp
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

View File

@ -20,18 +20,6 @@
#include <netinet/in.h>
#include <fcntl.h>
// #define ETH_P_IP 0x0800 /* Internet Protocol packet */
// #define ETH_ALEN 6 /* from <net/ethernet.h> */
// #define ETH_P_ALL 0x0003
// #define MY_DEST_MAC0 0xba
// #define MY_DEST_MAC1 0xf6
// #define MY_DEST_MAC2 0xb1
// #define MY_DEST_MAC3 0x71
// #define MY_DEST_MAC4 0x09
// #define MY_DEST_MAC5 0x64
// #define DEFAULT_IF "wlan0"
#define BUF_SIZ 65536
char isNumber(char number[])

View File

@ -0,0 +1,21 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = client_send_normaltcp_sendfile
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
all: $(TARGET)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJS)
$(TARGET): $(OBJS)
$(CC) $(OBJS) -Wall $(CFLAGS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)

View File

@ -27,7 +27,6 @@
#include <netinet/in.h>
#include <fcntl.h>
// #define DEFAULT_IF "lo"
// #define BUF_SIZ 8192
char isNumber(char number[])
@ -80,7 +79,7 @@ int main(int argc, char *argv[])
// set sendsize (if larger than 1460 will do packetization (fragmentation))
if (argc > 5)
sendsize = atoi(argv[5]);
// adjust slotLength to address packet size issue in the end
if ((quota % sendsize) > 0)
{

View File

@ -1,7 +1,7 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_normaltcp_sendfile
TARGET = client_send_normaltcp_splice
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

View File

@ -21,19 +21,7 @@
#include <fcntl.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
// #define _GNU_SOURCE /* See feature_test_macros(7) */
// #define ETH_P_IP 0x0800 /* Internet Protocol packet */
// #define ETH_ALEN 6 /* from <net/ethernet.h> */
// #define ETH_P_ALL 0x0003
// #define MY_DEST_MAC0 0xba
// #define MY_DEST_MAC1 0xf6
// #define MY_DEST_MAC2 0xb1
// #define MY_DEST_MAC3 0x71
// #define MY_DEST_MAC4 0x09
// #define MY_DEST_MAC5 0x64
// #define DEFAULT_IF "lo"
// #define BUF_SIZ 8192
@ -91,7 +79,7 @@ int main(int argc, char *argv[])
// set sendsize (if larger than 1460 will do packetization (fragmentation))
if (argc > 5)
sendsize = atoi(argv[5]);
// adjust slotLength to address packet size issue in the end
if ((quota % sendsize) > 0)
{

View File

@ -1,7 +1,7 @@
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = c2s_bypassl3
TARGET = client_send_normaludp
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

View File

@ -21,18 +21,6 @@
#include <netinet/in.h>
#include <fcntl.h>
// #define ETH_P_IP 0x0800 /* Internet Protocol packet */
// #define ETH_ALEN 6 /* from <net/ethernet.h> */
// #define ETH_P_ALL 0x0003
// #define MY_DEST_MAC0 0xba
// #define MY_DEST_MAC1 0xf6
// #define MY_DEST_MAC2 0xb1
// #define MY_DEST_MAC3 0x71
// #define MY_DEST_MAC4 0x09
// #define MY_DEST_MAC5 0x64
// #define DEFAULT_IF "wlan0"
#define BUF_SIZ 65536
char isNumber(char number[])

View File

@ -1,12 +1,12 @@
cd c2s_normaltcp_sendfile && make clean && make
cd client_send_normaltcp_sendfile && make clean && make
cd ../
cd c2s_normaltcp_splice && make clean && make
cd client_send_normaltcp_splice && make clean && make
cd ../
cd c2s_bypassl3 && make clean && make
cd client_send_bypassl3 && make clean && make
cd ../
cd c2s_normaludp && make clean && make
cd client_send_normaludp && make clean && make
cd ../
cd c2s_normaltcp && make clean && make
cd client_send_normaltcp && make clean && make
cd ../
cd c2s_readfile_only && make clean && make
cd client_readfile_only && make clean && make
cd ../

View File

@ -1,7 +1,8 @@
#CC = /media/Lucifer/android/lib/android-18-toolchain/bin/arm-linux-androideabi-gcc
CC = arm-linux-androideabi-gcc
# CC = gcc
CFLAGS = -pie -fPIE
TARGET = TCPReceiver_mobile
TARGET = server_recv_normaltcp
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)