Commit 8cf1abe5 authored by Cedric Roux's avatar Cedric Roux

- Fallback to v4 sockets

- Copy usefulll binaries to bin dir when compiling

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4293 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent dbfff6c8
......@@ -133,7 +133,8 @@ void* socket_udp_open(int type, const char* host, const char* port)
else
{
/* Setup socket address options at the client side */
socket_info.ai_family = AF_UNSPEC; /* Any address family */
socket_info.ai_family = AF_INET; /* Any address family */
// socket_info.ai_flags |= AI_V4MAPPED; /* IPv4-mapped IPv6 address */
}
/*
......@@ -180,7 +181,7 @@ void* socket_udp_open(int type, const char* host, const char* port)
/*
* Initiate a communication channel at the SERVER side
*/
else
else {
if (type == SOCKET_SERVER)
{
/* Set socket options */
......@@ -194,6 +195,7 @@ void* socket_udp_open(int type, const char* host, const char* port)
break; /* Bind succeed */
}
}
}
close (sfd);
}
......
......@@ -20,6 +20,7 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@$(CP) $@ $(BINDIR)
clean:
$(RM) $(OBJS) *.bak *~
......
......@@ -20,6 +20,7 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
@$(CP) $@ $(BINDIR)
clean:
$(RM) $(OBJS) *.bak *~
......
......@@ -17,6 +17,7 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@$(CP) $(TARGET) $(BINDIR)
clean:
$(RM) $(OBJS) *.bak *~
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment