Visual Basic Application Tutorial, Visual Basic Application Tutorial. Embarcadero Application Development Tools. VBA interactive development environment...,
Sockets programming in Ruby
Short summary:
This tutorial shows how to develop sockets-based networking applications using the Ruby language. Ruby basics and walks through the most important classes for sockets programming, followed by working chat application that illustrates these fundamentals ...
Long summary:Sockets programming in Ruby Explore Rubys fundamental sockets interfaces for networking applications Skill Level: Intermediate M. Tim Jones ( mtj@mtjones.com ) Senior Principal Software Engineer Emulex Corp. 11 Oct 2005 This tutorial shows how to develop sockets-based networking applications using the Ruby language. The author presents some Ruby basics and walks through the most important classes for sockets programming, followed by working chat application that illustrates these fundamentals. The tutorial finishes by exploring the higher-level classes that make it easy to build dynamic Web servers, mail servers and clients, and other application-layer protocols. Section 1. Before you start About this tutorial Ruby is an object-oriented scripting language that is simple, elegant, and dynamic. Ruby originated in Japan, but its now gaining popularity in the U.S. over traditional scripting languages such as Python and Perl. This tutorial demonstrates how to use the Ruby language, with emphasis on network programming. It explores the fundamental socket interfaces for Ruby, the higher-level classes that make it easy to build dynamic Web servers and mail servers and clients, and other application-layer protocols. Objectives In this tutorial, you put Ruby to the test by constructing a chat server application that Sockets programming in Ruby © Copyright IBM Corporation 1994, 2005. All rights reserved. of 25 can serve a large and scalable number of clients. By the end of this tutorial, you will know how to use the standard Sockets class to build both client and server applications, as well as how to use classes that simplify sockets programming, including TCPSocket and TCPServer. You will also have tried your hand at building a working, scalable chat server, and you will be familiar with several classes for manipulating application-layer protocols, including HTTP, SMTP, and POP3. Prerequisites You should have a basic knowledge of Ruby and basic familiarity with BSD-style sockets. System requirements To run the examples in this tutorial, you need version 1.8 of Ruby, which is available from the Ruby Web site (see Resources for a link). To build the Ruby interpreter, you need the GNU C compiler (gcc) and configure/make utilities, which are part of any standard GNU/Linux distribution. Section 2. Introducing Ruby For those new to Ruby, this section offers a brief overview. What is Ruby? Rubys syntax and construction borrow from a number of languages, such as Eiffel, Python, and Smalltalk-80. Because its syntax is similar to these (as well as C), its easy to learn and is intuitive in its form. Ruby is an interpreted language, which makes it perfect to quickly try out ideas. Ruby is also a dynamic language, so, like Scheme, you can construct programs within a Ruby program and then execute them. Ruby is object oriented and includes a large number of classes that can simplify application development. Some interesting classes deal ...
Source: www6.software.ibm.com
Ruby Course, Ruby Course. an immersive programming course ... if you already know some programming languages, there are sure some surprises here: ...,
Sockets programming in Ruby, This tutorial shows how to develop sockets-based networking applications using the Ruby language. Ruby basics and walks through the most important classes for sockets programming, followed by working chat application that illustrates these fundamentals ...,
Working on the Rails Road, Ruby and Rails programming. When not to use Rails! Really large applications ... interest in general Ruby programming. will continue to expand rapidly ...,