Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
IN 1995, WHEN I WAS IN MY SECOND YEAR IN COLLEGE, I was introduced to UNIX network programming. In C, you could create sockets to open TCP connections to servers and code the servers that accepted these connections. I remember the excitement I felt the fi rst time I created a TCP server: I could accept connections and receive and send messages on them. If I wanted my server to accept many concurrent connections, the common solution was to use threads, and soon I had created my fi rst multi-threaded TCP server. This server accessed a shared data structure, which needed to synchronize the access to. | Join the discussion @ p2p.wrar.com Wrox Programmer to Programmer Professional Node.js Building Javascript Based Scalable Software Pedro Teixeira PROFESSIONAL NODE.JS INTRODUCTION.xxvii PART I INTRODUCTION AND SETUP CHAPTER 1 Installing Node.3 CHAPTER 2 Introducing Node.15 PART II NODE CORE API BASICS CHAPTER 3 Loading Modules.23 CHAPTER 4 Using Buffers to Manipulate Encode and Decode Binary Data.29 CHAPTER 5 Using the Event Emitter Pattern to Simplify Event Binding.35 CHAPTER 6 Scheduling the Execution of Functions Using Timers.45 PART III FILES PROCESSES STREAMS AND NETWORKING CHAPTER 7 Querying Reading from and Writing to Files.53 CHAPTER 8 Creating and Controlling External Processes.63 CHAPTER 9 Reading and Writing Streams of Data.75 CHAPTER 10 Building TCP Servers.83 CHAPTER 11 Building HTTP Servers.95 CHAPTER 12 Building a TCP Client.103 CHAPTER 13 Making HTTP Requests.113 CHAPTER 14 Using Datagrams UDP .129 CHAPTER 15 Securing Your TCP Server with TLS SSL.139 CHAPTER 16 Securing Your HTTP Server with HTTPS.149 PART IV BUILDING AND DEBUGGING MODULES AND APPLICATIONS CHAPTER 17 Testing Modules and Applications.157 CHAPTER 18 Debugging Modules and Applications.167 CHAPTER 19 Controlling the Callback Flow.177 .