memset in client
This commit is contained in:
parent
46901ff78c
commit
57e8f559ee
|
@ -5,7 +5,7 @@ OBJECTS=$(SOURCES:%.c=%.o)
|
|||
#CFLAGS=-march=core2 -mtune=core2 -O2 -mfpmath=sse -msse4.1 -pipe
|
||||
#LDFLAGS=-Wl,-O1 -Wl,--as-needed
|
||||
|
||||
CFLAGS+= -g $(shell pkg-config --cflags liblist)
|
||||
CFLAGS+=-O2 $(shell pkg-config --cflags liblist)
|
||||
LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread
|
||||
|
||||
all: $(TARGET) echo-server echo-client
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "netfuncs.h"
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#define NUM_THREADS 1
|
||||
#define MAX_CONNECTIONS 1
|
||||
|
||||
|
||||
void *serv_request(void *data)
|
||||
{
|
||||
struct connection_cb {
|
||||
|
|
Loading…
Reference in New Issue