Got connected by calling htons on port num

This commit is contained in:
Darren VanBuren 2017-07-23 08:12:48 -07:00
parent 4ff4d4d93d
commit e4cf140f8a

View file

@ -105,7 +105,7 @@ int main(int argc, char *argv[]) {
PRFileDesc *tcpSocket = PR_OpenTCPSocket(PR_AF_INET6);
PRFileDesc *model = PR_NewTCPSocket();
theAddr.ipv6.port = 443;
theAddr.ipv6.port = PR_htons(443);
theAddr.raw.family = PR_AF_INET6;
PRFileDesc *nssSocket;
PRFileDesc *sslModel = SSL_ImportFD(NULL, model);