Posts

Showing posts from April, 2017

Socket Programming

Image
WHAT IS SOCKET ? Sockets provides communication between two computers using TCP (Transmission Control Protocol) network protocol  So you might ask what is TCP protocol ? Yes, TCP protocol is a network protocol that allows for reliable communication between two applications. So we'll move into the socket programming  The socket programming use client-server paradigm, which is roughly :  One program called serverClass that is waiting for the client's connection  A client class that makes connection with server class The server and the client exchange information until they are done The client and server both close their connection Ok Look at the above diagram As I mentioned before there are two types of blocks Server block Client block First server block creates server sockets.  Bind the socket to the specific server and port in the socket server object According to the above diagram server socket is created by...

Quick start with TypeScript

Image
Y ou might be heard about javascript but what is TypeScript?   Well, Typescript is a superset of Javascript. It provides typed nature to your code. Typescript can be used for cross-browser development. This article is intended to give you a quick overview about type script. Environment Setup To get start to typescript applications you have to install some prerequisites softwares in your machine.         1.Install nodejs           Go through this link and download latest stable version (LTS)                 https://nodejs.org/en/             2.Install http server            Open your terminal and type: npm install http-server –g     3 . Installing typescript  There are two main ways to get the typescript tools a.   By installing Typ...

Polymorphism

Image