12 Apr 2014

Protocol 1 Program..


Protocol Programs for Networking In C Language:-



Protocol 1(Simplex Protocol):-

  1. It is used for One way sending and receiving technique.
  2. It doesn't have acknowledgement for sender.
  3. No correspondence between Sender and Receiver.

Assumption:-

  1. The channel is error-free.
  2.  The sender is sending from an infinite stream of data and the receiver continues to read what the sender is sending.
  3. The reciever is at least as fast as the sender, thus we ca run the show without flow control mechanism.
  4. the sender writes to pipe 1 which is named pipe already defined.
  5. The write operation is binding operation by default.

Files needed:-

Header Files :- stdio.h, fcntl.h,
sender.txt:- For having message(frames) to send...
sender.c :- Sender side functionality and coding...
receiver.c :- Receiver side functionality and coding...

Code to be typed in sender.c file:

 void main()

{

        char ch;

        char temp[63];

        int val = open("pipe1", O_WRONLY);

        FILE *fp = fopen("sender.txt","rw+");

        system("clear");

        while((ch=fgetc(fp))!=EOF)

        {

                  if (ch == ' ')

                 {

                         fscanf("%s",temp);

                         write(val, temp, sizeof(temp));

                  }

                  else

                 {

                         printf("%s\n",temp);

                         write(val, temp, sizeof(temp));

                  }

          }

                printf("%s\n",temp);

                write(val, temp, sizeof(temp));

                close(val);

                fclose(fp);

}

Code to be typed in Reciever.c file:

void main()

 {

        int val;

        char temp[100];

        FILE *fp=fopen("reciever.txt","rw+");

        system("clear");

        mkfifo("pipe1", 0666, 0);

        val = open("pipe1", O_RDONLY);

        printf("\nReceiving msg : \n");

       while(read(val, temp, sizeof(temp)))

        {
              printf ("%s\n", temp);
        }

}

29 Mar 2014

What Is Google App Engine?



What Is Google App Engine?

Google App Engine is a Platform as a Service (PaaS) offering that lets you build and run applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs change. With App Engine, there are no servers for you to maintain. You simply upload your application and it’s ready to go.

  App Engine Runtime Enviournment-

Google App Engine supports apps written in a variety of programming languages.
  • Java: Using App Engine’s Java runtime environment, you can build your application using standard Java technologies.
  • Python: App Engine features a fast Python interpreter and standard Python libraries.
  • PHP: App Engine uses Google's Cloud Platform services under the hood when you call standard PHP functions.
  • Go: App Engine features a Go runtime environment that runs natively compiled Go code.
Google App Engine makes it easy to build and deploy an application that runs reliably even under heavy load and with large amounts of data. It includes the following features:
  • Persistent storage with queries, sorting, and transactions.
  • Automatic scaling and load balancing.
  • Asynchronous task queues for performing work outside the scope of a request.
  • Scheduled tasks for triggering events at specified times or regular intervals.
  • Integration with other Google cloud services and APIs.
Applications run in a secure, sandboxed environment, allowing App Engine to distribute requests across multiple servers, and scaling servers to meet traffic demands. Your application runs within its own secure, reliable environment that is independent of the hardware, operating system, or physical location of the server. For a full list of features.
 

App Engine Development Enviournment-

Software Development Kits (SDKs) for App Engine are available in all supported languages. Each SDK includes:
  • All of the APIs and libraries available to App Engine.
  • A simulated, secure sandbox environment, that emulates all of the App Engine services on your local computer.
  • Deployment tools that allow you to upload your application to the cloud and manage different versions of your application.
The SDK manages your application locally, while the Administration Console manages your application in production. The Administration Console uses a web-based interface to create new applications, configure domain names, change which version of your application is live, examine access and error logs, and much more.
 
Quotas and limits-

App Engine gives you 1 GB of data storage and traffic for free, which can be increased by enabling paid applications. However, some features impose limits unrelated to quotas to protect the stability of the system. For more details on quotas, including how you can edit them to suit your needs, see the Quotas page.

To get started...
  1. Download the SDK.
  2. Sign up for an account.
  3. Read the getting started information for your language.
  4. Check out the rest of the App Engine documentation.

25 Mar 2014

Wordpress or Blogger?

Blogger
WordPress
It is Free and Easy to Use.
It is CMS (Content Management System).
It is Product of Google. Some of its parts are not Editable.
It is Free and Open Source. Everything can be editable if you have proper knowledge.
It has “Bullet Proof” Security to access the Data of Blog. No one can edit the Blog without proper authority.
It has Lower Security than Blogger.
No Need to Pay money for Hosting. Google provides hosting facility with Blogspot domain.
Need your own web hosting for hosting WordPress.
No need to pay for Giving Custom redirection to custom domain.
Need to pay money if you are using premium hosting service for redirection of domain.
It has limited Resources (plugins) and Themes.
Having Extra Plugin and Themes for each work like Social Media Bookmarks, Labels, Searches, etc…
We can’t sell the Blog to another party. Google doesn’t allow this type of Functionality services in its Privacy and Business Policy.
We can Sell the WordPress site to anyone. There is no Rule on selling and Purchasing.
Blogger can be used for most of the Posting purpose. Just for giving or sharing knowledge of you to others.
WordPress is used in Most of Websites today either they are knowledge sharing or business purpose.
 




Comments

© 2013-2016 ITTechnocrates. All rights resevered. Developed by Bhavya Mehta