![]() ![]() We use ports all the time when we are in the Internet. The problem is that if the computer wants to have more than one socket at a time, we will need a further address to identify our socket. So a socket can be created from the computer at address 37.143.125.23 to a computer at address 64.253.241.72. ![]() 256^4 = 4,294,967,296 that makes over 4 billion different addresses, which is enough for now. Notice that each of the four numbers that makes up an IP address is a byte, so it can range from 0 to 255. An example of an IP address is "129.240.3.5". Each computer that is in the Internet or on a LAN has an IP address.Īn IP address consists of four bytes separated with periods ("."). These connections are two-way, meaning that both sides can send and receive information. Sockets are connections, usually through the Internet or a LAN. ![]() WinSock is an API that will let you create and use sockets. Well I thought that WinSock in C++ would be just as easy big mistake. Back then I was amazed at how simple it was. I had used WinSock before, but that was in Visual BASIC. I was originally going to learn DirectPlay, but I guess there aren't enough resources at the moment. I was expecting someone to just say "Yeah, go to and get an online book!" Not a single person there knew it! I asked what they used for networking and everyone said WinSock. I went on #gamedev (my nick is jadam) the other day and asked if anybody knew DirectPlay. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |