Reply To: Winrar Thread

Home › Forum Archive › Other › Random › Winrar Thread › Reply To: Winrar Thread

#109605
MasterP
Spectator

I’m just going to drop this right here. This is from the MSDN WinSock tutorial. Note the example port they used.

 

http//msdn.microsoft.com/en-us/library/windows/desktop/bb530742(v=vs.85).aspx said:

1.The getaddrinfo function is used to determine the values in the sockaddr structure:

•AF_INET is used to specify the IPv4 address family.

•SOCK_STREAM is used to specify a stream socket.

•IPPROTO_TCP is used to specify the TCP protocol .

•AI_PASSIVE flag indicates the caller intends to use the returned socket address structure in a call to the bind function. When the AI_PASSIVE flag is set and nodename parameter to the getaddrinfo function is a NULL pointer, the IP address portion of the socket address structure is set to INADDR_ANY for IPv4 addresses or IN6ADDR_ANY_INIT for IPv6 addresses.

•27015 is the port number associated with the server that the client will connect to.