Socket API Overview
00:00
In this lesson, you’ll see the part of the socket API you’ll be using most in this course, plus a brief description of other parts of the socket API. Here are the basic tools of the socket API: socket()
, .bind()
, .listen()
, .accept()
, .connect()
, .connect_ex()
, .send()
, .recv()
, and .close()
. Throughout this course, you’ll see how those are used to manage connections.
00:30 This basic functionality is mapped to their counterpart system calls, but you should also be aware that there’s much more to the socket library than you’ll see in this course, including functionality specific for servers, and many specific to different protocols, such as Hypertext Transfer Protocol and Simple Mail Transfer Protocol.
00:53 But this course looks at the more basic functionality, and in the next lesson, you’ll learn how this part of the API creates and uses sockets for transferring data.
Become a Member to join the conversation.