jeremycw / httpserver.h

Single header library for writing non-blocking HTTP servers in C
MIT License
1.78k stars 143 forks source link

socket api bind is a little bit confused with std::bind #58

Open zhangbo opened 2 years ago

zhangbo commented 2 years ago

I changed int rc = bind(s, (struct sockaddr )addr, sizeof(struct sockaddr_in)); to int rc = ::bind(s, (struct sockaddr )addr, sizeof(struct sockaddr_in)); problem solved.