While replacing UDT calls with TCP calls I got this
server.cpp: In function `int main(int, char **)':
server.cpp:60: passing `int *' as argument 3 of
`accept(int, sockaddr *, socklen_t *)' changes signedness
//int namelen; (UDT Way)
unsigned int namelen; // (TCP Way)
recver = CUDT::accept(serv, (sockaddr*)&their_addr,
This change solved the problem.
In UDT namelen is a regular int.
In TCP namelen is an unsigned int.
Pehaps we should change the UDT accept function to use
an unsigned int. Then we will better conform to the