Learning Python Network Programming
IP and DNS The preceding information was supplied by the NTP server to the client. This information can be used to determine the ...
Chapter 6 Similarly, the NTP server response has been shown in the following screenshot: Summary In this chapter, the standard P ...
...
Programming with Sockets After you have interacted with various clients/servers in Python, you will be keen to create your own c ...
Programming with Sockets Python has quite an easy way to start with the socket interface. In order to understand this better, le ...
Chapter 7 Then the client/server enters into the request/response loop. The client process sends data to the server process, and ...
Programming with Sockets Let's try to connect a client socket to a server process. The following code is an example of TCP clien ...
Chapter 7 Enter the target host name to connect: http://www.asgdfdfdkflakslalalasdsdsds.invalid Enter the target port: 80 Failed ...
Programming with Sockets Content-Length: 111 Connection: close Content-Type: text/html Inspecting the client/server communicati ...
Chapter 7 In the Interface option, we choose to capture packets passing through any interface. Now, if you run the preceding TCP ...
Programming with Sockets As you can see, the HTTP GET request has other components such as Request URI, version, and so on. Now ...
Chapter 7 TCP servers As you understood from the very first client/server interaction diagram, the server process needs to carry ...
Programming with Sockets Let's modify our previous TCP client to send arbitrary data to any server. The following is an example ...
Chapter 7 Received from client: GET TIME Sending the server time to client: Sun Mar 15 12:09:16 2015 Server waiting for connecti ...
Programming with Sockets As we are capturing packets on a non-standard port, Wireshark doesn't decode it in the Data section (as ...
Chapter 7 The following screenshot shows the server's response sent to the client. After inspecting UDP client/server packets, w ...
Programming with Sockets TCP port forwarding One of the interesting experiments we can do with TCP socket programming is to set ...
Chapter 7 remote_bind_address=(REMOTE_HOST, REMOTE_PORT)) server.start() print('Connect the remote service via local port: %s' % ...
Programming with Sockets If you can also capture packets on your remote machine (192.168.56.101), you could see FTP traffic, as ...
Chapter 7 A non-blocking socket I/O In this section, we will see a small example code snippet to test a non-blocking socket I/O. ...
«
6
7
8
9
10
11
12
13
14
15
»
Free download pdf