Friday, August 2, 2013

Define Web Hosting & Virtual Private Network & Voice Over Network

Web Hosting || Virtual Private Network || Voice Over Network

WEB HOSTING

    • It is a type of Internet hosting service that allows individuals and organizations to make their own website accessible via world wide web.
    • To put your web site on the Internet you need three things:
    1. Domain name is an identification label that identify IP resources such as web sites.
      E.g. www.google.com
    2. Web host account is the account hosting companies
    3. Web site is a site created by the user.

VIRTUAL PRIVATE NETWORK

    • It is a group of computer systems, connected to a private network.
    • It is secure way of connecting to a private LAN at a remote location using Internet.
    • VPN’s include encryption, strong authentication of remote users or hosts, and mechanisms for hiding or masking information about the private network topology from potential attackers on the public network.

VOICE OVER INTERNET

    • Internet telephony is the new technology, where phone calls can be made in any part of the world through the internet.
    • There are various web sites offering Net Telephony services like Net2phone, Vocal tec, net meeting.
    • Family of internet technologies, communications protocols and transmission technologies for delivery of voice communications and multimedia sessions over IP networks, such as Internet.

Internet Concepts

Listening the word Internet Concepts the first Question stuck to the mind is....

What is Internet..?

    • Internet is a global network of interconnected computers over world wide web.
    • It is a global web of computers that allows individuals to communicate with each other.
    • Internet consists of two types of computers:
      • Server
        Server is a computer or program that fulfils the request of another computer or program.
      • Client
        Client is a computer or program that requests a service of another computer or program.

Applications of Internet

    • Communicate with other people
    • Sharing information or resources
    • Connect to other computer systems

Types of Network

    • MILNET    -    Military Network
    • DARPA      -    Defense Advanced Research Network
    • BITNET     -    Because it’s Time Network
    • USENET    -    User Network
    • NSFNET    -    National Science Foundation Network.
    • ARPANET -   Advanced Research Projects Agency/Administration Network

History of Internet

    • In 1969, the Department of Defense (DOD) of the United States (US) started a network using four computers at four separate universities throughout the United States enabling users to share resources and information, which was known as ARPAnet(Advanced Research Projects Administration Network).
    • In 1972, there were 37 computers connected to ARPANET. In that year, ARPA’s name was changed to DARPA (Defense ARPA).
    • In order to manage the size and complexity of the network were broken into two parts:
    • MILNET-for managing Military sites
    • ARPANET –for managing non-military sites(Network for research and educative purpose)
    • In 1970’s other networks like BITNET and USENET also come into being.
    • In 1980’s NSFNET was created. NSFNET allowed universities and research agencies to link up with its super computer.

 # How Internet works...?

    • Internet is a global network of computers, each computer connected to the internet must have a unique address. That address is known as IP address.
    • Internet includes thousands of host computers(servers) which provides data and services as requested by client system.
Internet Concept

    1. Message starts
    2. Message is divided into small chunks known as packets
    3. Each packets are assigned a port number.
    4. Each packets receives its destination address.
    5. Data conversion from analog to digital and vice versa.
    6. The ISPs router examines the destination address in each packet and determines where to send it.

 ISP(Internet Service Provider)

    • When you connect your computer to the internet, you are connecting to a special type of server which is provided & operated by your ISP.
    • The job of this ISP is to provide the link between your browser & the rest of the internet.
    • The single ISP server handles the internet connections of many individual browsers.
    • The main component of providing access to the Internet consists of:
      International connectivity, which allows you to connect to the amorphous(unstructured) Internet.
      Domestic connectivity, which allows you to connect to the domestic gateway.
    • There are three ways an ISP can connect to the Internet:
      • VSNL(Videsh Sanchar Nigam Limited)/DOT(Department of Telecommunications)
      • STPI(Software Technology Park India)Private Operators
      • VSNL-VSNL is india’s leading provider of international telecommunications and Internet services.
      • DOT-DOT is responsible for issuing security clearances.
    • STPI- STPI is a semi government organization that has authorized to sell international gateway services to companies involved in developing software
    • Private Operators- Private operators are a private independent companies competing directly with the multi-system operators

Wednesday, July 31, 2013

Overview of C Programming Language

Basic Information About C Programming Language

Computer Component

Hardware
    • Hardware is the equipment, or the devices, associated with a computer.

Software
    • The instructions that tell the computer what to do are called software or programs.
    • Program written by programmers

Hardware and software accomplish four major operations:

    • Input
    • Processing
    • Output
    • Storage.

Types of Language

High – level Language
    • Language in human readable form are known as high – level language.
    • E.g. C, C++, Java etc.
Low – level Language
    • Language in the form of 0s and 1s is known as low level language.
    • Also known as machine language

Types of Error

Syntax Error
    • Refers to an error in the syntax of a sequence of characters or tokens for particular programming language.
    • Syntax error will be display at compile time.
Logical Error
    • Error occurs because of logic of code is known as logical error.
    • It will be display at run time.

Compiler and Interpreter

    • It is one kind of program to convert high level language into low level language.
    • Interpreter check code line by line if error than display error.
    • Compiler check whole code and than display list of errors.

Reserve Keywords

    • Some words are reserved for special purpose which are known as reserve keywords.
    • Reserve keywords are not used as an name of variable, functions, class etc.
    • The keywords must be written in lower case only.

Identifiers

    • Identifiers refer to the names of variables, functions and arrays.
Rules for identifiers
    • Must consists of only letters, digits, or underscore.
    • First character must be an alphabet (or underscore).
    • Only first 31 characters are significant.
    • Cannot use a reserve keyword.
    • Must not contain white space.

Constants

    • Constants refer to fixed values that do not change during the execution of program.

Backslash Character Constant

C Programming Backslash Character

Variables

    • Variable is a named location of memory that is used to hold a value.
    • Its value can be modified during the program execution.
    • We can also say that variable is an identifier that is used to represent a single value.

Data Types

    • It is a type of data that can be represent in the value of data element.
    • It defines the type of constant which is going to store into the variable.
    • Compiler will allocate memory for variable based on data type.

Comments

    • Sometime we want to write comment in the program which is not an executable part of our source code.

There are two types of comment

Single line comment ( // )
    • E.g. // This is a single line comment
Multi line comment ( /* ------------ */)
    • E.g. /* Program name : sum.cpp
      Definition : To calculate the sum */

Declaring Variable

    • Before using the variable, you have to define variable to give information to compiler.
    • Syntax
      Datatype VariableName;
    • E.g.
      int StudentId;
      char Name;
      float Average;
      double SumOfSalary;
    • Statements used to declare variable is known as declarative statement.
    • When we declare a variable
    • Space for a variable is set in memory to hold a value of the specified data type.
    • That space is associated with the variable name.
    • That space is associated with a unique address.
    • E.g. int StudentId;

Variable Initialization

    • At the time of variable declaration we can assign default value which is known as variable initialization.
    • E.g. int StudentId = 25;

Assigning value to variable

    • We can also assign the value to the variable.
    • The statement which assign value to the variable is known as assignment statement.

C Program Structure

Preprocessor Directive
Global Declaration
User Defined Functions
int main()
{ Local Declaration
Statements }

Output Function : printf()

    • printf( ) is a function defined in stdio.h header file.
    • It reads data from the computer’s memory and display it on standard output device.
    • printf stands for print formatted.
    • On success, the total number of characters written is returned otherwise return negative number.
      • Syntax :
        printf(“control string”, VariableList);
      • Ex.
        Input Code :
        printf(“Welcome to home”);
        Output is : Welcome to home
      • Ex.
        Input Code : int StudentId = 10;
        printf(“%d”, StudentId);
        Output is : 10
    • You can also combine message and value of variable.
      • Ex.
        Input Code : int StudentId = 10;
        printf(“Id of student is %d”, StudentId);
        Output is : Id of student is 10
    • You can also specify the width of field.

      • Syntax :
        printf(“%field-width FS”, VariableName);
      • E.g.
        Input Code : int No = 2563;
        printf(“%3d”, No);
        Output : 256

Input Function : scanf()

    • It is input formatting function.
    • It will read data from standard input and stored in given variable.
    • scanf stands for scan formatted.
    • Remember that leading white spaces are ignored.
    • On success, the function returns the number of items successfully read.
    • In the case of an input failure before any data could be successfully read, EOF is returned
      • Syntax :
        scanf(“Control String”, &VariableList);
      • E.g.
        int No;
        scanf(“%d”, &No);
        char Str;
        scanf(“%c”, &Str);
    • You can't use message in scanf function.
    • If you want to display message for user understanding than use printf function.
      • E.g.
        int No;
        printf("Enter one number:¨);
        scanf("%d", &No);
    • Width is used to specified that maximum number of characters to be read.
    • But if the whitespace character found before width, that only many characters are going to be stored.
      • E.g.
        int No;
        scanf(“%2d”, &No);

Operator

    • Unary Operator
      • Operator which required one operand is known as unary operator.
    • Binary Operator
      • Operator which required two operand is known as binary operator.
    • Ternary Operator
      • Operator which required three operand is known as ternary operator.


Goto Statement

    • We can change the normal sequence of execution by transferring control to other part of the program using goto statement.
    • Syntax: goto label_name;
    • Here the label name should be valid identifier which may appear in anywhere in the program.

Break Statement

    • The break statement uses to come out from a loop.
    • It can be used to force to end the loop before its natural end.
    • Remember that break statement can only used with loop statements and switch statement.

Continue Statement

    • The continue statement skip the rest part of the loop and transfer control at the beginning of the loop for next iteration.

Switch Statement

    • We can choose statements to execute based on some value.
    • This can be achieve using nested if….else statement. But it is very complex.
    • C language provide switch statement to avoid this type of complexity.