---- IT Acumens. COM IT Acumens. COMIT Acumens. COM.

Slides:



Advertisements
Similar presentations
Socket Programming 101 Vivek Ramachandran.
Advertisements

Introduction to Sockets Jan Why do we need sockets? Provides an abstraction for interprocess communication.
Computer Net Lab/Praktikum Datenverarbeitung 2 1 Overview Sockets Sockets in C Sockets in Delphi.
Sockets: Network IPC Internet Socket UNIX Domain Socket.
Socket Programming Application Programming Interface.
Networks: TCP/IP Socket Calls1 Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
Socket Programming.
Tutorial 8 Socket Programming
Programming with Berkeley Sockets Presented by Chris GauthierDickey Written by Daniel Stutzbach (I think!) for CIS 432/532 Useful References: ● man pages.
CSE/EE 461 Getting Started with Networking. Basic Concepts  A PROCESS is an executing program somewhere.  Eg, “./a.out”  A MESSAGE contains information.
Client Server Model The client machine (or the client process) makes the request for some resource or service, and the server machine (the server process)
Sockets COS 518: Advanced Computer Systems Michael Freedman Fall
CS 360 – Spring 2007 Pacific University TCP section 6.5 (Read this section!) 27 Feb 2007.
UNIX Sockets COS 461 Precept 1. Clients and Servers Client program – Running on end host – Requests service – E.g., Web browser Server program – Running.
1 Tutorial on Socket Programming Computer Networks - CSC 458 Department of Computer Science Yukun Zhu (Slides are mainly from Monia Ghobadi, and Amin Tootoonchian,
UNIX Sockets COS 461 Precept 1.
Sockets CIS 370 Fall 2009, UMassD. Introduction  Sockets provide a simple programming interface which is consistent for processes on the same machine.
Basic Socket Programming TCP/IP overview. TCP interface Reference: –UNIX Network Programming, by Richard Stevens. –UNIX man page.
Ashutosh Shukla Lecture 3 Network Programming CS 640: Computer Networking.
TCP Socket Programming. r An abstract interface provided to the application programmer  File descriptor, allows apps to read/write to the network r Allows.
ECE 4110 – Internetwork Programming Client-Server Model.
Sockets and intro to IO multiplexing. Goals We are going to study sockets programming as means to introduce IO multiplexing problem. We will revisit socket.
Assignment 3 A Client/Server Application: Chatroom.
Network Programming Tutorial #9 CPSC 261. A socket is one end of a virtual communication channel Provides network connectivity to any other socket anywhere.
Fall 2000Datacom 11 Lecture 4 Socket Interface Programming: Service Interface between Applications and TCP.
Elementary TCP Sockets
Socket Programming. Introduction Sockets are a protocol independent method of creating a connection between processes. Sockets can be either – Connection.
CS345 Operating Systems Φροντιστήριο Άσκησης 2. Inter-process communication Exchange data among processes Methods –Signal –Pipe –Sockets.
Server Sockets: A server socket listens on a given port Many different clients may be connecting to that port Ideally, you would like a separate file descriptor.
CS162B: IPv4 Socketing Jacob T. Chan. Socketing in the Real World  Most computer games are multiplayer in nature or have multiplayer components  DotA,
Chapter 2 Applications and Layered Architectures Sockets.
Remote Shell CS230 Project #4 Assigned : Due date :
1 COMP445 Fall 2006 Lab assignment 1. 2 STEP1: Get the name of the second party STEP2: Get phone number from white pages CALLERRECEIVER STEP1: Plug the.
Networking Tutorial Special Interest Group for Software Engineering Luke Rajlich.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
Distributed Computing A Programmer’s Perspective.
UNIX Sockets COS 461 Precept 1. Socket and Process Communication The interface that the OS provides to its networking subsystem application layer transport.
Introduction to Socket
CSE/EE 461 Getting Started with Networking. 2 Basic Concepts A PROCESS is an executing program somewhere. –Eg, “./a.out” A MESSAGE contains information.
Socket Programming Lab 1 1CS Computer Networks.
CSCI 330 UNIX and Network Programming Unit XV: Transmission Control Protocol.
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: HsinYu Ha.
Introduction to Sockets
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Review: – Why layer architecture? – peer entities – Protocol and service interface – Connection-oriented/connectionless service – Reliable/unreliable service.
Read() recv() connection establishment Server (connection-oriented protocol) blocks until connection from client Client socket() bind() listen() accept()
UNIX Sockets Outline UNIX sockets CS 640.
1 Spring Semester 2008, Dept. of Computer Science, Technion Internet Networking recitation #7 Socket Programming.
1 TCP Sockets Programming Creating a passive mode (server) socket.Creating a passive mode (server) socket. Establishing an application-level connection.Establishing.
Lecture 3 TCP and UDP Sockets CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
1 Socket Interface. 2 Client-Server Architecture The client is the one who speaks first Typical client-server situations  Client and server on the same.
Sockets Intro to Network Programming. Before the internet... Early computers were entirely isolated No Internet No network No model No external communications.
1 Socket Interface. 2 Basic Sockets API Review Socket Library TCPUDP IP EthernetPPP ARP DHCP, Mail, WWW, TELNET, FTP... Network cardCom Layer 4 / Transport.
Sockets API Developing Applications using the Sockets API.
Sockets and Beginning Network Programming
Sockets and Beginning Network Programming
UNIX Sockets COS 461 Precept 1.
Socket Programming in C
Transport layer API: Socket Programming
Network Programming CSC- 341
UNIX Sockets Outline Homework #1 posted by end of day
Socket Programming in C
TCP Sockets Programming
Advanced Network Programming spring 2007
Sockets Programming Socket to me!.
Sockets Programming Socket to me!.
Internet Networking recitation #8
Outline Communications in Distributed Systems Socket Programming
Sockets.
Presentation transcript:

---- IT Acumens. COM IT Acumens. COMIT Acumens. COM

OBJECTIVE To develop a user friendly Editor to support multi-platform and to overcome the drawbacks faced by Telnet. To develop a user friendly Editor to support multi-platform and to overcome the drawbacks faced by Telnet. Telnet is a protocol for connecting a Remote System. Telnet is a protocol for connecting a Remote System. Connection is made by providing a IP address for connection. Connection is made by providing a IP address for connection.

WIN_UX WINDOWS MACHINE LINUX MACHINE

Drawbacks of Vi Editor  Vi Editor has 3 Modes of operation viz., Insert Mode Command Mode Visual Mode  To edit a text in Vi Editor the modes have to changed accordingly.  Its hard to remember the commands of Vi Editor

About our Editor This editor is a GUI based Editor This editor is a GUI based Editor User friendly User friendly Supports multi-platform Supports multi-platform Good Interface for Telnet Good Interface for Telnet

Modules Our Project comprises of 10 Modules: 1. 1.Connection 2. 2.Security System 3. 3.Command Processing 4. 4.Backup Manager 5.File Transaction 6.Mail Service 7.Memory Control 8.Search Engine

SYSTEM ANALYSIS

The use of Telnet is to connect clients with it Remote machine (Linux Server). The server sends the request given by the client and gets The core area of this project is to overcome the drawback faced by the Telnet. The server sends the request given by the client and gets The core area of this project is to overcome the drawback faced by the Telnet. the respond use of Telnet is to connect clients with it Remote machine (Linux Server). the respond use of Telnet is to connect clients with it Remote machine (Linux Server). It stores the files to the server, get it and execute from the server. It stores the files to the server, get it and execute from the server.

PROBLEM DEFINITION The existing vi editor has modes named insert mode and command mode used to type a program, to save, to delete etc., really working in this editor becomes tedious, and it will give headaches to the clients. The existing vi editor has modes named insert mode and command mode used to type a program, to save, to delete etc., really working in this editor becomes tedious, and it will give headaches to the clients. The program which we have developed in C helps us to communicate with the editor. The program which we have developed in C helps us to communicate with the editor.

SOFTWARE SPECIFICATION Windows OS as client Windows OS as client Linux as Remote server Linux as Remote server Visual Basic 6.0 Visual Basic 6.0 C HTML HTML

HARWARE SPECIFICATION PENTIUM III PROCESSOR PENTIUM III PROCESSOR 128 MB RAM 128 MB RAM 20 GB HARD DISK 20 GB HARD DISK 1.44 FLOPPY DRIVE 1.44 FLOPPY DRIVE 14 “ COLOUR MONITOR 14 “ COLOUR MONITOR 1O1 KEYS KEYBORD 1O1 KEYS KEYBORD SCROLL MOUSE SCROLL MOUSE

SERVERCLIENT BIND LISTEN ACCEPT WAITS UNTIL THE CONNECTION IS ESTABLISHED READ (or) RECV SEND (or) WRITE SOCKETSOCKET CONNECT ESTABLISH A CONNECTION WRITE (or) SEND REQUEST RESPONSE ARCHITECTURE OF TCP/IP

SOCKET Socket( ) is the end-end connection between the systems. Socket( ) is the end-end connection between the systems. Syntax: int socket(int domain, int type, int protocol); 1. Domain is set as "AF_INET“. 2. Type argument specifies the kernel of the socket “SOCK_STREAM”. 3. Protocol to "0". Syntax: int socket(int domain, int type, int protocol); 1. Domain is set as "AF_INET“. 2. Type argument specifies the kernel of the socket “SOCK_STREAM”. 3. Protocol to "0".

BIND Bind( ) method associates the socket with a port on the client machine. Bind( ) method associates the socket with a port on the client machine. Syntax: int bind(int sockfd, struct sockaddr *my_addr, int addrlen); 1. sockfd is the socket file descriptor returned by socket( ). 2. my_addr is a pointer to a struct sockaddr that contains information about your address, namely, port and IP address. 3. addrlen can be set to sizeof(struct sockaddr). Syntax: int bind(int sockfd, struct sockaddr *my_addr, int addrlen); 1. sockfd is the socket file descriptor returned by socket( ). 2. my_addr is a pointer to a struct sockaddr that contains information about your address, namely, port and IP address. 3. addrlen can be set to sizeof(struct sockaddr).

CONNECT Connect( ) is used to connect the remote host from the server. Connect( ) is used to connect the remote host from the server. Syntax: int connect(int sockfd, struct sockaddr *serv_addr, int addrlen); 1. sockfd is the socket file descriptor,returned by the socket( ) call. 2. serv_addr is a struct sockaddr containing the destination port and IP address. 3. addrlen can be set to sizeof(struct sockaddr). Syntax: int connect(int sockfd, struct sockaddr *serv_addr, int addrlen); 1. sockfd is the socket file descriptor,returned by the socket( ) call. 2. serv_addr is a struct sockaddr containing the destination port and IP address. 3. addrlen can be set to sizeof(struct sockaddr).

LISTEN Listen( ) waits for incoming connections and handle them appropriately. Listen( ) waits for incoming connections and handle them appropriately. Syntax: int listen(int sockfd, int backlog); 1. backlog is the number of connections allowed on the incoming queue i.e. the incoming connections are going to wait in this queue until the accept( ) fires. Syntax: int listen(int sockfd, int backlog); 1. backlog is the number of connections allowed on the incoming queue i.e. the incoming connections are going to wait in this queue until the accept( ) fires.

SEND & RECIEVE These two functions are for communicating over stream sockets or connected datagram sockets. These two functions are for communicating over stream sockets or connected datagram sockets. Syntax: int send(int sockfd, const void *msg, int len, int flags); int recv(int sockfd, void *buf, int len, unsigned int flags); Syntax: int send(int sockfd, const void *msg, int len, int flags); int recv(int sockfd, void *buf, int len, unsigned int flags);

sockfd is the socket descriptor where data is to be sent. sockfd is the socket descriptor where data is to be sent. msg is a pointer to the data you want to send. msg is a pointer to the data you want to send. len is the length of that data in bytes. len is the length of that data in bytes.

MODULES CONNECTION CONNECTION COMMAND PROCESSING COMMAND PROCESSING BACKUP MANAGER BACKUP MANAGER FILE TRANSACTION FILE TRANSACTION MAIL SERVICE MAIL SERVICE MEMORY CONTROL MEMORY CONTROL SEARCH ENGINE SEARCH ENGINE

CONNECTION IT ACT AS A TELNET PROTOCOL IT ACT AS A TELNET PROTOCOL WE CAN CONNECT TO SERVER FROM ANY MACHINE BY USE OF WINSOCK CONTROL IN VISUAL BASIC WE CAN CONNECT TO SERVER FROM ANY MACHINE BY USE OF WINSOCK CONTROL IN VISUAL BASIC PERFORM ALL OPERATION FROM LOCAL MACHINE PERFORM ALL OPERATION FROM LOCAL MACHINE

COMMAND PROCESSING PERFORM TELNET COMMANDS IN FRONTEND ITSELF PERFORM TELNET COMMANDS IN FRONTEND ITSELF

BACKUP MANAGER STORE FILES PERMANENTLY STORE FILES PERMANENTLY USER CAN GET BACK THEIR FILES USER CAN GET BACK THEIR FILES

FILE TRANSACTION TWO WAY COMMUNICATION BETWEEN CLIENT AND SERVER TWO WAY COMMUNICATION BETWEEN CLIENT AND SERVER TRANSFER FILES FROM SERVER TO CLIENT AND VICE VERSA TRANSFER FILES FROM SERVER TO CLIENT AND VICE VERSA

MAIL SERVICE Any client in the organization use this module to send or receive any mails. Any client in the organization use this module to send or receive any mails. This module contains two sub-modules This module contains two sub-modules Inbox Inbox Compose Compose

SEARCH ENGINE MODULE This module searches any document, web page or any other content from the server. This module searches any document, web page or any other content from the server. The admin can add some important pages related to corporate details in the server. The admin can add some important pages related to corporate details in the server. The clients can easily go through that by using this module and they can download it to them personnel hard disk. The clients can easily go through that by using this module and they can download it to them personnel hard disk.

ADMINISTRATOR MODULE SECURITY SYSTEM SECURITY SYSTEM MEMORY CONTROL MEMORY CONTROL USER SETTING USER SETTING

SECURITY SYSTEM PROTECT THE RESOURCES OF SERVER PROTECT THE RESOURCES OF SERVER PROTECT FROM IILEGAL ACCESS PROTECT FROM IILEGAL ACCESS ADD IP ADDRESS OF EACH CLIENT MACHINE ADD IP ADDRESS OF EACH CLIENT MACHINE

MEMORY CONTROL IT RESTRICT THE USER FROM USING EXCESS AMOUNT OF MEMORY IT RESTRICT THE USER FROM USING EXCESS AMOUNT OF MEMORY WE CAN ALLOCATE MEMORY TO EACH USER WE CAN ALLOCATE MEMORY TO EACH USER USED TO OVERCOME THE MEMORY PROBLEM USED TO OVERCOME THE MEMORY PROBLEM

FUTURE ENHANCEMENTS Planning to include the compilation facilities in our editor. i.e. for C, C++ & java programs. Planning to include the compilation facilities in our editor. i.e. for C, C++ & java programs.