World Library  


Add to Book Shelf
Flag as Inappropriate
Email this Book

Python Socket Programming

By Singh, Ajit

Click here to view

Book Id: WPLBN0100301918
Format Type: PDF (eBook)
File Size: 3.59 MB.
Reproduction Date: 6/16/2019

Title: Python Socket Programming  
Author: Singh, Ajit
Volume:
Language: English
Subject: Non Fiction, Technology, Computer Science
Collections: Authors Community, Engineering
Historic
Publication Date:
2019
Publisher: Ajit Singh
Member Page: Ajit Singh

Citation

APA MLA Chicago

Singh, A. (2019). Python Socket Programming. Retrieved from http://www.hawaiilibrary.net/


Description
This book is about using Python to get the socket program done on Windows as well as LINUX. I hope by now you have heard of Python, the exciting object-oriented scripting language that is rapidly entering the programming mainstream. Although Python is perhaps better known on the Unix platform, it offers a superb degree of integration with the Windows environment. One of us, Mark Hammond, is responsible for many of Python's Windows extensions and has co-authored the Python COM support, both of which are major topics of this book. This book can thus be considered the definitive reference to date for Python on the Windows platform.

Excerpt
This is intended to be a practical book focused on several examples of socket programs. It doesn't aim to teach Python programming, although i do provide a brief tutorial. Instead, it aims to cover socket programming. I also include some lab assignments to get more familiarize with socket programming.

Table of Contents
1 Introduction 4 2 Basic Socket Overview 5 2.1 Creating a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Connecting a socket and data transfer . . . . . . . . . . . . . . . . . . . . . . . 2.3 Binding a name to socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.4 Listening and accepting connections . . . . . . . . . . . . . . . . . . . . . . . . 2.5 UDP sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.6 Closing the socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7 Using functions provided in socket module . . . . . . . . . . . . . . . . . . . . . 2.7.1 Functions based on resolver library . . . . . . . . . . . . . . . . . . . . . 2.7.2 Service-related functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.3 Miscellaneous functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Basic network structures design 9 3.1 Designing a TCP server . . . . . . . . . . . . . . . . . . . 3.2 The TCP client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Modeling datagram applications . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 Advanced topics on servers 4.1 Building a pristine environment . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Handling multiple connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Threaded servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.2 Using select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.3 Fork servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Dealing with classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 Simple connection object . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Applying a design pattern . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Advanced aspects concerning clients . . . . . . . . . . . . . . . . . . . . . . . . 5 HTTP protocol 21 5.1 CGI module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.1 Build a simple CGI script . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.2 Using CGI module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.3 Con guring Apache on Linux for using with CGI scripts . . . . . . . . . 6 Common protocols 26 6.1 Designing Telnet applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 File Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 SMTP protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Getting Started With Python In Windows 30

 

Click To View

Additional Books


  • Iran For Dummies : Iran, Before The Bull... (by )
  • He Wahi Moolelo No Na Lawaia Ma Kapalilu... (by )
  • Tentoria (by )
  • Oiwi Vol. 1 Volume 1 (by )
  • Stories from the Archives of a Picture i... (by )
  • The Art of War : Sun Tzu (by )
  • Mortaumal (by )
  • Ai'Ai (by )
  • Survival Scenarios and Suggestions Volume 1 (by )
  • Attaining the Worlds Beyond (by )
  • A Tale of Two Cities (by )
  • Learning the Code 
Scroll Left
Scroll Right

 



Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.