changed the server code to support multiple listening addresses

This commit is contained in:
2018-03-22 09:46:44 +00:00
parent b7590398f1
commit f575bc6add
5 changed files with 218 additions and 56 deletions

View File

@ -158,7 +158,7 @@ int str_to_sockaddr (hcl_t* hcl, const ooch_t* str, hcl_oow_t len, hcl_sckaddr_t
const ooch_t* p;
const ooch_t* end;
oocs_t tmp;
sockaddr_t* nwad = (hcl_sckaddr_t*)sckaddr;
sockaddr_t* nwad = (sockaddr_t*)sckaddr;
p = str;
end = str + len;