MS.Net Framework with emphasis on online gaming Ed Mucker CS522 9 Dec 02.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
Advertisements

Introduction to .NET Framework
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Spades Game Application with Video Conference Group 12 Anıl Yaman Emre Ergün Hüseyin Aktaş Pınar Tekir.
EEE436 / CS422 Final Presentation Group
Remote Procedure CallCS-4513, D-Term Remote Procedure Call CS-4513 Distributed Computing Systems (Slides include materials from Operating System.
Online Educational Game of Snakes and Ladders -Shalini Pradhan -Manali Joshi -Uttara Paingankar -Seema Joshi.
Henrico Dolfing Business Segment Partners. Océ Document Technologies GmbH2 June, NET Framework Version 3.0.
Remote Method Invocation Chin-Chih Chang. Java Remote Object Invocation In Java, the object is serialized before being passed as a parameter to an RMI.
ISYS 546 Client/Server Database Application Development.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
CS490T Advanced Tablet Platform Applications Network Programming Evolution.
A Chat Server DBI – Representation and Management of Data on the Internet.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 25 Networking.
An Introduction to Internetworking. Algorithm for client-server communication with UDP (connectionless) A SERVER A CLIENT Create a server-socket (listener)and.
Chris Harrison Stacey Kuznetsov Mariya Lysenkova Jennifer Refat Gabriel Sinkin.
1 The Warehouse Program. 2 A console program. Listens for connect requests from the call center program. Accepts connection. Reads message. Order ID Prints.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 19 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Rajeswari Indupuri Introduction to.NET Framework.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
ISYS 350 Business Application Development
Introduction to .Net Framework
ISYS 512 Business Application Design and Development with.Net David Chao.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
.NET & C# Introduction 11 March, 2004 Yusung Kim CS441 Introduction to Computer Networking.
.NET Framework & C#.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Assemblies & Namespaces1. 2 Assemblies (1).NET applications are represented by an assembly An assembly is a collection of all software of which the application.
Lesson №12 Telecommunication network software design for HTTP and Internet Lector: Aliev H.U. TASHKENT UNIVERSITY OF INFORMATION TECHNOLOGIES THE DEPARTMENT.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
Windows Programming Using C# Internet Programming.
ISYS 573 Special Topic – VB.Net David Chao. The History of VB Early 1960s:BASIC-Beginner’s All-Purpose Symbolic Instruction Code –Teaching –Simple syntax,
CS795/895: Introduction. Topics Distributed Systems –Availability –Performance –Web Services Security –Authentication –Authorization –Confidentiality.
Component-Based Software Engineering Introduction to.NET Paul Krause.
Chapter 18 Networking F Client/Server Communications F Simple Client/Server Applications F Serve Multiple Clients F Create Applet Clients F Send and Retrieve.
Internet Applications and Network Programming Dr. Abraham Professor UTPA.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
ISYS 812 Business Software Development David Chao.
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Spring/2002 Distributed Software Engineering C:\unocourses\4350\slides\DefiningThreads 1 RMI.
1 Chapter 28 Networking. 2 Objectives F To comprehend socket-based communication in Java (§28.2). F To understand client/server computing (§28.2). F To.
UDP Client-Server. The Socket Class The Socket class provides a set of methods and properties for network communications. The Socket class allows you.
ISYS 350 Business Application Development David Chao.
CS390- Unix Programming Environment CS 390 Unix Programming Environment Java Socket Programming.
Texas Forty-Two By: Nate Normandin CS 470. What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A.
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
12/5/2015.net 1 system.net Contains any network functionallity you would need in c# Several sub namespaces exists to allow for more fined control –System.Net.Sockets.
WINDOWS NT Network Architecture Amy, Mei-Hsuan Lu CML/CSIE/NTU August 19, 1998.
Remote Procedure CallCS-502 Fall Remote Procedure Call (continued) CS-502, Operating Systems Fall 2007 (Slides include materials from Operating System.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Networking OSI (Open Systems Interconnection) model of computer networking, seven layers (the Application, Presentation, Session, Transport, Network, Data.
ISYS 512 Business Application Design and Development with.Net David Chao.
UNIT - III WEB SERVICES BUILDING BLOCKS. Transport protocols for web services Transport such as HTTP and TCP are becoming common for SOAP traffic. However.
1 Network Communications A Brief Introduction. 2 Network Communications.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Applications Active Web Documents Active Web Documents.
Client-Server Communication
C# and the .NET Framework
Introduction to C# AKEEL AHMED.
.Net Sockets.
An Introduction to Internetworking
DOT NET ARCHITECTURE (OR) DOT NET FRAME WORK ARCHITECTURE
Jim Fawcett CSE681 – Software Modeling & Analysis Fall 2008
Client-Server Systems
Jim Fawcett CSE681 – Software Modeling & Analysis Fall 2008
Thread per client and Java NIO
Jim Fawcett CSE681 – Software Modeling & Analysis Fall 2008
Presentation transcript:

MS.Net Framework with emphasis on online gaming Ed Mucker CS522 9 Dec 02

Overview Online Gaming MS.Net Framework.Net Framework Class Library Project Implementation

Online Gaming Architecture –Server/Client (request/response through one point) –Peer to peer (client responsible for sending all messages) Transport Protocol –TCP - connection with server –UDP - communication with other players (chat functions) Number of users –Dependent on hardware/operating system (hundreds/thousands) –Use of zones to distribute load (one zone per server) –Threading techniques used to accommodate multiple users

MS.Net Framework Java architecture for Windows –Common Language Runtime (JVM) –MS Intermediate Language (Java Byte Code) –Executable code machine dependent (MS OS only) CLR based languages –C# (very similar to Java) –VB.Net/Visual C++.Net/JScript.Net –Class interoperability between languages (CLS) CLR services –Automatic garbage collection –Assemblies/metadata (manifest)

MS.Net Framework Class Library Namespaces –Similar to packages in Java –Consists of subordinate namespaces and classes –Root namespace is “System” Common Subordinate namespaces –IO, Net, Threading, Runtime.Serialization, Windows.Forms Use within CLR languages –Syntax “using System.XXXX;” –Similar to import statements in Java –.Net/User defined

Project Implementation Client/Server Architecture Generate simple multi-user TCP socket program Implementation done in C# MS.Net Namespaces used –IO (reader stream) –Net (Network stream class) –Net.Sockets (TCP listener/client classes) –Threading (Thread class) Safe Code - Delegates (pointer to function) Asynchronous communication with multiple users

C# Programming Example - TCP Listener using System.Threading; public static void Main(){ //var declaration code TcpListener listener = new TcpListener(8080); listener.Start(); TcpClient client = listener.AcceptTcpClient(); ClientHandler cHandler = new ClientHandler(); cHandler.clientsocket = client; ThreadStart t = new ThreadStart(cHandler.RunClient); Thread clientThread = new Thread(t); clientThread.Start(); listener.Stop(); }

C# Programming Example - RunClient() using System.Text; using System.Net; public static void RunClient(){ StreamReader read = new StreamReader (clientSocket.GetStream()); NetworkStream write = clientSocket.GetStream(); string returndata = read.ReadLine(); System.Console.WriteLine(returndata);//write data to screen byte [] datawrite = Encoding.ASCII.GetBytes(returndata); write.Write(datawrite, 0, datawrite.Length); clientSocket.Close(); }

References Multi-Player Game Programming (Barron) Understanding.Net (Chappell) Professional.Net Network Programming (multiple authors) Mastering Visual C#.Net (Price)

Questions????