Windows sockets Iveta LenčiauskaitE.

Slides:



Advertisements
Similar presentations
1 Java Networking – Part I CS , Spring 2008/9.
Advertisements

CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Layer 7- Application Layer
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Socket Addresses. Domains Internet domains –familiar with these Unix domains –for processes communicating on the same hosts –not sure of widespread use.
I NTRODUCTION OF S OCKET P ROGRAMMING L.Aseel AlTurki King Saud University.
Electronic Commerce Last Week
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Internet-Based Client Access
Syllabus outcomes Describes and applies problem-solving processes when creating solutions Designs, produces and evaluates appropriate solutions.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
SEED Infotech Pvt. Ltd. 1 Networking in Java. SEED Infotech Pvt. Ltd. 2 Objectives of This Session Describe issues related to any type of network using.
Copyright © 2002 Pearson Education, Inc. Slide 3-1 CHAPTER 3 Created by, David Zolzer, Northwestern State University—Louisiana The Internet and World Wide.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
The Internet Just the Facts. Protocols TCP/IP are the TRANSPORT protocols of the Internet Services use TCP/IP to connect to other computers on Internet.
Internet Applications and Network Programming Dr. Abraham Professor UTPA.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
CSP Implementing a network 1 Implementing a network Lecturer: Smilen Dimitrov Cross-sensorial processing – MED7.
Dr. John P. Abraham Professor University of Texas Pan American Internet Applications and Network Programming.
1 Networking Chapter Distributed Capabilities Communications architectures –Software that supports a group of networked computers Network operating.
Windows Network Programming ms-help://MS.MSDNQTR.2004JAN.1033/winsock/winsock/windows_sockets_start_page_2.htm 井民全.
Inter-process communication: Socket. socket Internet socket From Wikipedia, the free encyclopedia Jump to: navigation,
Chapter 2 Applications and Layered Architectures Sockets.
BASIC INTERNET PROTOCOLS: http, ftp, telnet. Mirela Walczak.
CSCI 465 D ata Communications and Networks Lecture 27 Martin van Bommel CSCI 465 Data Communications & Networks 1.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Berkeley Socket Abstraction
“ is not to be used to pass on information or data. It should used only for company business!” – Memo from IBM Executive The Languages, Methods &
1 Network Communications A Brief Introduction. 2 Network Communications.
Networking Mehdi Einali Advanced Programming in Java 1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
Some Network Commands n Some useful network commands –ping –finger –nslookup –tracert –ipconfig.
SOCKET PROGRAMMING Presented By : Divya Sharma.
Chapter 5 Network and Transport Layers
The Transport Layer Implementation Services Functions Protocols
Tiny http client and server
Level 2 Diploma Unit 10 Setting up an IT Network
Jim Fawcett CSE 681 – Software Modeling & Analysis Fall 2002
Distributed Systems.
Network Wiring and Reference
Unit 4: Transport protocols
TCP/IP Internetworking
TCP/IP Internetworking
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
I. Basic Network Concepts
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
TCP/IP Networking An Example
Process-to-Process Delivery:
27.
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Networking Theory (part 2)
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
Chapter 3 Socket API © Bobby Hoggard, Department of Computer Science, East Carolina University These slides may not be used or duplicated without permission.
Protocol Application TCP/IP Layer Model
Chapter 7 Network Applications
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
Jim Fawcett CSE 681 – Software Modeling & Analysis Summer 2003
Networking Theory (part 2)
Networking Theory (part 2)
Presentation transcript:

Windows sockets Iveta LenčiauskaitE

Definition Windows sockets (Winsock) is an application programming interface (API) that allows communication between Windows network software and network services, such as Transmission Control Protocol/Internet Protocol (TCP/IP).

It is written in C programming language and is designed for C/C++ programmers. It's called Winsock because it's an adaptation for Windows of the Berkeley UNIX sockets interface. API was released in 1992 FActs

Communication diagram

Client/server scheme

WinSock2 is a newer version of Winsock mechanism WinSock2 is a newer version of Winsock mechanism. It has a bunch of arrangements, solved issues, using descriptions and recommendations. 16bit programs are no longer supported in WinSock2. Winsock has a Layered Service Provider(LSP) tool. It is an expansion pack of „parental control“ such as internet content filtering, managing network traffic by priority (QoS method). Added functionality and supporting of other protocols, not just TCP/IP. Winsock2

Efficiency of windows socket application Windows is capable of serving 200,000 TCP connections at a time. In the SPECWeb96 trial of Internet Information Server, Windows has served more than 25,000 HTTP requests per second. Windows has achieved a transfer rate of more than 750Mbps on an interconnected Gigabit network of 10 hops.

Windows socket efficiency Network programs are initiated quickly without delay No need to wait until the network closes A fast user interface response is ensured Network errors are being verified The application determines its operating time. Reduced cost of protocols in terms of time and systems. Windows socket efficiency

Windows sockets programming Windows Sockets is oriented towards C / C ++ programmers. Windows Sockets is oriented for Windows programming. WinSock opens up advanced network capabilities such as multicast and service monitoring (QoS). WinSock uses the WOSA (Windows Open System Architecture) model, i.e. defines a standard interface between APIs and protocols. The WinSock API is accessed through the ws2_32.lib library #include <winsock2.h>

Winsock functions Command Purpose WSAStartup() Initiates use of WS2_32.DLL by a process getaddrinfo() Provides protocol-independent translation from an ANSI host name to an address. socket() Creates a socket that is bound to a specific service provider. bind() Associates a local address with a socket. listen() Places a socket a state where it is listening for an incoming connection. accept() Permits an incoming connection attempt on a socket. send() Sends data on a connected socket. closesocket() Closes an existing socket. WSACleanup() Terminates use of the Ws2_32.DLL.

Ports 7 - ping 13 - time 15 - netstat 22 - SSH 23 - Telnet One of the most important aspects when programming sockets is porting. Some of the most commonly used dedicated ports are: Ports 7 - ping 13 - time 15 - netstat 22 - SSH 23 - Telnet 25 - SMTP (Email Forwarding) 43 - Whois (Query information) 79 - Finger (Query server information) 80 - HTTP (web pages) 110- POP (receipt of email) 119 - NNTP 513 - CLOGIN (Used for IP spoofing)