Got connected by calling htons on port num
This commit is contained in:
parent
4ff4d4d93d
commit
e4cf140f8a
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue