- 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
This commit is contained in:
Cedric Roux
2013-10-29 10:20:22 +00:00
parent dbfff6c804
commit 8cf1abe537
4 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -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 *~