TP1 : Correction. Rappels : Stream, Thread et Socket TCP

Size: px
Start display at page:

Download "TP1 : Correction. Rappels : Stream, Thread et Socket TCP"

Transcription

1 Université Paris 7 M1 II Protocoles réseaux TP1 : Correction Rappels : Stream, Thread et Socket TCP Tous les programmes seront écrits en Java. 1. (a) Ecrire une application qui lit des chaines au clavier et les affiche à l écran (utiliser la classe Scanner). L arrêt de cette application se fait à la lecture de "stop" au clavier. public class Main { public static void main(string[] args) { // l arret se fait par "stop" System.out.println("des lignes, stop pour finir:"); while(!(sc.hasnext("stop"))){ nom=sc.nextline(); System.out.println("question pour:"+nom); (b) Ecrire une application qui lit deux chaines au clavier (soient in et out ces chaines). L application copie le contenu du fichier in dans le fichier out (utiliser la classe PrintStream). import java.io.*; public class Exo { public static void main(string[] args) { System.out.println("nom du fichier, stop pour finir:"); nom=sc.next(); System.out.println("demande:"+nom); try{ BufferedReader din= new BufferedReader( new InputStreamReader( new FileInputStream("data.txt"))); PrintStream dout = new PrintStream(new FileOutputStream(nom)); while ((nom = din.readline())!= null){ dout.println(nom); 1

2 System.out.println("copier:"+nom); catch (IOException ex) { System.out.println("pb fichier" ); 2. On considère 2 processus connectés via une socket TCP (port 1027)(soient A et B ces 2 processus). A lit des chaines au clavier et les transmet à B. B affiche les chaines transmises. (a) A et B terminent lorsque A lit stop au clavier. Quels protocoles suivent A et B pour terminer? A lit stop et ferme la socket. B arrete quand il ne peut plus lire. (b) Donner le code correspondant lorsque A et B sont sur la même machine import java.net.*; import java.util.*; import java.io.*; class paira { ServerSocket server; int port=1027; try { // exception si le port est utilise server = new ServerSocket(port); catch (IOException ex) { System.out.println("port utilise" + port ); server=null; try{ Socket connection = server.accept( ); //creation du buffer en emission DataOutputStream outtoclient = new DataOutputStream(connection.getOutputStream()); //lecture au clavier et envoie au client System.out.println("des lignes stop pour finir"); while(!(sc.hasnext("stop"))){ nom=sc.nextline(); outtoclient.writebytes(nom+"\r\n"); connection.close( ); server.close(); 2

3 catch (IOException ex) { System.out.println("port utilise" + port ); server=null; import java.net.*; import java.io.*; public class pairb { // se connecte a A lit les chaines et les affiche BufferedReader networkin = null; BufferedReader userin=null; try { // connexion avec le serveur Socket s = new Socket("localhost", 1027); networkin = new BufferedReader(new InputStreamReader(s.getInputStre String theline ; /* The only way to detect that the remote host has closed the connec to attempt to read or write from the connection. If the rem host properly closed the connection, read() will return -1. If the connection was not terminated normally, read() and w will throw an exception. */ while((theline = networkin.readline())!=null){ System.out.println("B:"+theLine); catch (UnknownHostException ex) { System.err.println(ex); catch (IOException ex) { System.err.println(ex); (c) Donner le code correspondant lorsque A et B sont sur des machines différentes. Remplacer "localhost" (d) A et B terminent lorsque B lit stop au clavier. Quels protocoles suivent A et B pour terminer (utiliser 2 threads)? 3

4 B lit a la fois les donnees en provenance de A et le clavier. Quand il lit stop il ferme la socket (e) Donner le code correspondant pour A et B. import java.io.dataoutputstream; import java.io.ioexception; import java.net.serversocket; import java.net.socket; public class paira2 { ServerSocket server; int port=1027; try { // exception si le port est utilise server = new ServerSocket(port); Socket connection = server.accept( ); DataOutputStream outtoclient =new DataOutputStream(connection.getOutput //lecture au clavier et envoie a pair B System.out.println("des lignes"); while(true) {nom=sc.nextline(); outtoclient.writebytes(nom+"\r\n"); catch (IOException ex) { System.err.println("sortie car la socket est ferme"); import java.io.bufferedreader; import java.io.ioexception; import java.io.inputstreamreader; import java.net.socket; import java.net.unknownhostexception; public class pairb2 { BufferedReader networkin = null; try { // connexion avec le serveur Socket connection = new Socket("localhost", 1027); 4

5 LectServeurThread lect= new LectServeurThread(connection); networkin = new BufferedReader(new InputStreamReader(connection.get String theline; while((theline = networkin.readline())!=null){ System.out.println("B:"+theLine); catch (UnknownHostException ex) { System.err.println("sortie"); catch (IOException ex) { System.err.println("sortie car la socket a ete fermee"); import java.io.bufferedreader; import java.io.dataoutputstream; import java.io.ioexception; import java.net.socket; public class LectServeurThread extends Thread { private Socket s; public LectServeurThread(Socket s ) { this.s = s; this.start(); public void run() { try{ System.out.println("stop pour finir"); while (!(sc.hasnext("stop"))){ System.out.println("stop pour finir"); sc.nextline(); s.close( ); System.out.println("terminer"); catch (IOException ex) { System.out.println("erreur"); 5

6 static public void main(string argv[]) { System.out.println("blabla"); 6

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

Networking Code. Jeffrey Miller, Ph.D. CSCI 201L USC CSCI 201L

Networking Code. Jeffrey Miller, Ph.D. CSCI 201L  USC CSCI 201L Networking Code CSCI 201L Jeffrey Miller, Ph.D. HTTP://WWW-SCF.USC.EDU/~CSCI201 USC CSCI 201L Outline Server Networking Client Networking Program USC CSCI 201L 2/11 Server Software A server application

More information

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty("java.security.policy","../server.java.

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty(java.security.policy,../server.java. ExempleRMI.java import java.lang.*; import java.rmi.registry.*; import java.rmi.server.*; import java.io.*; import java.util.*; ExempleRMI.java import pkgexemple.*; public class ExempleRMI public static

More information

Java Network Programming. The java.net package contains the Socket class. This class speaks TCP (connection-oriented protocol).

Java Network Programming. The java.net package contains the Socket class. This class speaks TCP (connection-oriented protocol). Java Network Programming The java.net package contains the Socket class. This class speaks TCP (connection-oriented protocol). The DatagramSocket class uses UDP (connectionless protocol). The java.net.socket

More information

Lesson: All About Sockets

Lesson: All About Sockets All About Sockets http://java.sun.com/docs/books/tutorial/networking/sockets/index.html Page 1 sur 1 The Java TM Tutorial Start of Tutorial > Start of Trail Trail: Custom Networking Lesson: All About Sockets

More information

Advanced Network Programming Lab using Java. Angelos Stavrou

Advanced Network Programming Lab using Java. Angelos Stavrou Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded

More information

Licence Informatique Année 2005-2006. Exceptions

Licence Informatique Année 2005-2006. Exceptions Université Paris 7 Java Licence Informatique Année 2005-2006 TD n 8 - Correction Exceptions Exercice 1 La méthode parseint est spécifiée ainsi : public static int parseint(string s) throws NumberFormatException

More information

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 Introduction to Java Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233 ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 What Is a Socket? A socket is one end-point of a two-way

More information

TP N 10 : Gestion des fichiers Langage JAVA

TP N 10 : Gestion des fichiers Langage JAVA TP N 10 : Gestion des fichiers Langage JAVA Rappel : Exemple d utilisation de FileReader/FileWriter import java.io.*; public class Copy public static void main(string[] args) throws IOException File inputfile

More information

Internet Technology. 02r. Programming with Sockets Paul Krzyzanowski. Rutgers University. Spring 2013

Internet Technology. 02r. Programming with Sockets Paul Krzyzanowski. Rutgers University. Spring 2013 Internet Technology 02r. Programming with Sockets Paul Krzyzanowski Rutgers University Spring 2013 February 7, 2013 2013 Paul Krzyzanowski 1 Sample Client-Server Program To illustrate programming with

More information

Network Communication

Network Communication Network Communication Outline Sockets Datagrams TCP/IP Client-Server model OSI Model Sockets Endpoint for bidirectional communication between two machines. To connect with each other, each of the client

More information

POB-JAVA Documentation

POB-JAVA Documentation POB-JAVA Documentation 1 INTRODUCTION... 4 2 INSTALLING POB-JAVA... 5 Installation of the GNUARM compiler... 5 Installing the Java Development Kit... 7 Installing of POB-Java... 8 3 CONFIGURATION... 9

More information

Learning Outcomes. Networking. Sockets. TCP/IP Networks. Hostnames and DNS TCP/IP

Learning Outcomes. Networking. Sockets. TCP/IP Networks. Hostnames and DNS TCP/IP CP4044 Lecture 7 1 Networking Learning Outcomes To understand basic network terminology To be able to communicate using Telnet To be aware of some common network services To be able to implement client

More information

Remote Method Invocation

Remote Method Invocation 1 / 22 Remote Method Invocation Jean-Michel Richer jean-michel.richer@univ-angers.fr http://www.info.univ-angers.fr/pub/richer M2 Informatique 2010-2011 2 / 22 Plan Plan 1 Introduction 2 RMI en détails

More information

JAVA - NETWORKING. Socket Programming: This is most widely used concept in Networking and it has been explained in very detail.

JAVA - NETWORKING. Socket Programming: This is most widely used concept in Networking and it has been explained in very detail. http://www.tutorialspoint.com/java/java_networking.htm JAVA - NETWORKING Copyright tutorialspoint.com The term network programming refers to writing programs that execute across multiple devices computers,

More information

Java Network. Slides prepared by : Farzana Rahman

Java Network. Slides prepared by : Farzana Rahman Java Network Programming 1 Important Java Packages java.net java.io java.rmi java.security java.lang TCP/IP networking I/O streams & utilities Remote Method Invocation Security policies Threading classes

More information

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ version du 26 Mai 2003 : JDBC-SQL et Brazil pré-requis : lecture de Tutorial JDBC de Sun Bibliographie Brazil [Bra00]www.sun.com/research/brazil

More information

Langages Orientés Objet Java

Langages Orientés Objet Java Langages Orientés Objet Java Exceptions Arnaud LANOIX Université Nancy 2 24 octobre 2006 Arnaud LANOIX (Université Nancy 2) Langages Orientés Objet Java 24 octobre 2006 1 / 32 Exemple public class Example

More information

Network/Socket Programming in Java. Rajkumar Buyya

Network/Socket Programming in Java. Rajkumar Buyya Network/Socket Programming in Java Rajkumar Buyya Elements of C-S Computing a client, a server, and network Client Request Result Network Server Client machine Server machine java.net Used to manage: URL

More information

Division of Informatics, University of Edinburgh

Division of Informatics, University of Edinburgh CS1Bh Lecture Note 20 Client/server computing A modern computing environment consists of not just one computer, but several. When designing such an arrangement of computers it might at first seem that

More information

Introduction au BIM. ESEB 38170 Seyssinet-Pariset Economie de la construction email : contact@eseb.fr

Introduction au BIM. ESEB 38170 Seyssinet-Pariset Economie de la construction email : contact@eseb.fr Quel est l objectif? 1 La France n est pas le seul pays impliqué 2 Une démarche obligatoire 3 Une organisation plus efficace 4 Le contexte 5 Risque d erreur INTERVENANTS : - Architecte - Économiste - Contrôleur

More information

String sentence = new String(receivePacket.getData()); InetAddress IPAddress = receivepacket.getaddress(); int port = receivepacket.

String sentence = new String(receivePacket.getData()); InetAddress IPAddress = receivepacket.getaddress(); int port = receivepacket. 164 CHAPTER 2 APPLICATION LAYER connection requests, as done in TCPServer.java. If multiple clients access this application, they will all send their packets into this single door, serversocket. String

More information

Les fragments. Programmation Mobile Android Master CCI. Une application avec deux fragments. Premier layout : le formulaire

Les fragments. Programmation Mobile Android Master CCI. Une application avec deux fragments. Premier layout : le formulaire Programmation Mobile Android Master CCI Bertrand Estellon Aix-Marseille Université March 23, 2015 Bertrand Estellon (AMU) Android Master CCI March 23, 2015 1 / 266 Les fragments Un fragment : représente

More information

TP : Système de messagerie - Fichiers properties - PrepareStatement

TP : Système de messagerie - Fichiers properties - PrepareStatement TP : Système de messagerie - Fichiers properties - PrepareStatement exelib.net Une société souhaite mettre en place un système de messagerie entre ses employés. Les travaux de l équipe chargée de l analyse

More information

JAVA Program For Processing SMS Messages

JAVA Program For Processing SMS Messages JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS

More information

Mail User Agent Project

Mail User Agent Project Mail User Agent Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will implement a mail user agent (MUA) that sends mail to other users.

More information

Question1-part2 What undesirable consequences might there be in having too long a DNS cache entry lifetime?

Question1-part2 What undesirable consequences might there be in having too long a DNS cache entry lifetime? CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Assignment 4 Working as a group. Working in small gruops of 2-4 students. When you work as a group, you have to return only one home assignment per

More information

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical

More information

Network Programming using sockets

Network Programming using sockets Network Programming using sockets TCP/IP layers Layers Message Application Transport Internet Network interface Messages (UDP) or Streams (TCP) UDP or TCP packets IP datagrams Network-specific frames Underlying

More information

Socket Programming in Java

Socket Programming in Java Socket Programming in Java Learning Objectives The InetAddress Class Using sockets TCP sockets Datagram Sockets Classes in java.net The core package java.net contains a number of classes that allow programmers

More information

Previously. Networking 2. Outline. TCP Client Side. Where s my server? Java Servers

Previously. Networking 2. Outline. TCP Client Side. Where s my server? Java Servers G52APR Java Application programming Networking 2 Michael Li http://www.cs.nott.ac.uk/~jwl/g52apr Previously Brief introduction to networking in Java What is IP and port How to find IP addresses (DNS lookup)

More information

Audit de sécurité avec Backtrack 5

Audit de sécurité avec Backtrack 5 Audit de sécurité avec Backtrack 5 DUMITRESCU Andrei EL RAOUSTI Habib Université de Versailles Saint-Quentin-En-Yvelines 24-05-2012 UVSQ - Audit de sécurité avec Backtrack 5 DUMITRESCU Andrei EL RAOUSTI

More information

NETWORK PROGRAMMING IN JAVA USING SOCKETS

NETWORK PROGRAMMING IN JAVA USING SOCKETS NETWORK PROGRAMMING IN JAVA USING SOCKETS Prerna Malik, Poonam Rawat Student, Dronacharya College of Engineering, Gurgaon, India Abstract- Network programming refers to writing programs that could be processed

More information

Application Development with TCP/IP. Brian S. Mitchell Drexel University

Application Development with TCP/IP. Brian S. Mitchell Drexel University Application Development with TCP/IP Brian S. Mitchell Drexel University Agenda TCP/IP Application Development Environment Client/Server Computing with TCP/IP Sockets Port Numbers The TCP/IP Application

More information

Annexe - OAuth 2.0. 1 Introduction. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014

Annexe - OAuth 2.0. 1 Introduction. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014 1 Introduction Annexe - OAuth 2.0. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014 Alternativement à Flickr, notre serveur pourrait proposer aux utilisateurs l utilisation de leur

More information

Building a Multi-Threaded Web Server

Building a Multi-Threaded Web Server Building a Multi-Threaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous

More information

!"# $ %!&' # &! ())*!$

!# $ %!&' # &! ())*!$ !"# $ %!&' # &! ())*!$ !" #!$ %& ' ( ) * +,--!&"" $.!! /+010!" +!, 31! 4)&/0! $ #"5!! & + 6+ " 5 0 7 /&8-9%& ( +" 5)& /*#.! &( $ 1(" 5 # ( 8 +1 + # + 7$ (+!98 +&%& ( +!" (!+!/ (!-. 5 7 (! 7 1+1( & + ":!

More information

Assignment 4 Solutions

Assignment 4 Solutions CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Assignment 4 Solutions Working as a pair Working in pairs. When you work as a pair you have to return only one home assignment per pair on a round.

More information

Programmation RMI Sécurisée

Programmation RMI Sécurisée Programmation RMI Sécurisée 5 janvier 2012 D après http ://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based. A Code RMI de Base A.1 Les fichiers Hello.java public i n t e r f a c e Hello extends

More information

Calcul parallèle avec R

Calcul parallèle avec R Calcul parallèle avec R ANF R Vincent Miele CNRS 07/10/2015 Pour chaque exercice, il est nécessaire d ouvrir une fenètre de visualisation des processes (Terminal + top sous Linux et Mac OS X, Gestionnaire

More information

Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS)

Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS) Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS) Veuillez vérifier les éléments suivants avant de nous soumettre votre accord : 1. Vous avez bien lu et paraphé

More information

Technical Service Bulletin

Technical Service Bulletin Technical Service Bulletin FILE CONTROL CREATED DATE MODIFIED DATE FOLDER OpenDrive 02/05/2005 662-02-25008 Rev. : A Installation Licence SCO sur PC de remplacement English version follows. Lors du changement

More information

Data Communication & Networks G22.2262-001

Data Communication & Networks G22.2262-001 Data Communication & Networks G22.2262-001 Session 10 - Main Theme Java Sockets Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences 1 Agenda

More information

drop table Aeroport cascade constraints; create table Aeroport ( codeaeroport char(3), -- Utilisé le code IATA

drop table Aeroport cascade constraints; create table Aeroport ( codeaeroport char(3), -- Utilisé le code IATA ------------------------------------------------------------ -- Universite de Sherbrooke -- Sarah Lamothe, Matricule 14080601 -- Simon Therrien, Matricule 14058814 -- IFT187 - Travail pratique 1 partie

More information

Thursday, February 7, 2013. DOM via PHP

Thursday, February 7, 2013. DOM via PHP DOM via PHP Plan PHP DOM PHP : Hypertext Preprocessor Langage de script pour création de pages Web dynamiques Un ficher PHP est un ficher HTML avec du code PHP

More information

goal: learn how to build client/server applications that communicate using sockets socket: dropbox between application process and endend-transport

goal: learn how to build client/server applications that communicate using sockets socket: dropbox between application process and endend-transport Socket programming goal: learn how to build client/server applications that communicate using sockets socket: dropbox between application process and endend-transport protocol application process socket

More information

Transport layer protocols. Message destination: Socket +Port. Asynchronous vs. Synchronous. Operations of Request-Reply. Sockets

Transport layer protocols. Message destination: Socket +Port. Asynchronous vs. Synchronous. Operations of Request-Reply. Sockets Transport layer protocols Interprocess communication Synchronous and asynchronous comm. Message destination Reliability Ordering Client Server Lecture 15: Operating Systems and Networks Behzad Bordbar

More information

The Need For Speed. leads to PostgreSQL. Dimitri Fontaine dimitri@2ndquadrant.fr. 28 Mars 2013

The Need For Speed. leads to PostgreSQL. Dimitri Fontaine dimitri@2ndquadrant.fr. 28 Mars 2013 The Need For Speed leads to PostgreSQL Dimitri Fontaine dimitri@2ndquadrant.fr 28 Mars 2013 Dimitri Fontaine dimitri@2ndquadrant.fr The Need For Speed 28 Mars 2013 1 / 23 Dimitri Fontaine 2ndQuadrant France

More information

Outline. Introduction to Network Programming (java.net) Networking in Java Browsing (www) Custom networking (browsing)

Outline. Introduction to Network Programming (java.net) Networking in Java Browsing (www) Custom networking (browsing) Outline Introduction to Programming (java.net) Mazen.Malek.Shiaa@item.ntnu.no Applets All what you need about URLs Socket programming Implementation of client and server programs Datagrams Sources: 1.

More information

private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00};

private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00}; /* *Utilisation des Java Card (U)SIM pour la sécurisation des communications et des données dans les applications sur téléphones mobiles Cette midlet est chargée de proposer une interface à l'utilisateur

More information

Aucune validation n a été faite sur l exemple.

Aucune validation n a été faite sur l exemple. Cet exemple illustre l utilisation du Type BLOB dans la BD. Aucune validation n a été faite sur l exemple. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;

More information

Installation troubleshooting guide

Installation troubleshooting guide Installation troubleshooting guide Content ERROR CODE PROBLEMS... 3 Error code 301: Unknown protection system. Verify the installation.... 3 Error code 302: The software cannot be used. The computer date

More information

MapReduce Détails Optimisation de la phase Reduce avec le Combiner

MapReduce Détails Optimisation de la phase Reduce avec le Combiner MapReduce Détails Optimisation de la phase Reduce avec le Combiner S'il est présent, le framework insère le Combiner dans la pipeline de traitement sur les noeuds qui viennent de terminer la phase Map.

More information

Liste d'adresses URL

Liste d'adresses URL Liste de sites Internet concernés dans l' étude Le 25/02/2014 Information à propos de contrefacon.fr Le site Internet https://www.contrefacon.fr/ permet de vérifier dans une base de donnée de plus d' 1

More information

TP #4 b. ClientBourse.java Classe principale du client graphique et fonction main. http://www.centraliup.fr.st

TP #4 b. ClientBourse.java Classe principale du client graphique et fonction main. http://www.centraliup.fr.st http://www.centraliup.fr.st Conception et Internet TP #4 b ClientBourse.java Classe principale du client graphique et fonction main import javax.swing.table.*; import javax.swing.event.*; import javax.swing.border.*;

More information

Programming Assignment: Development of a Proxy Cache

Programming Assignment: Development of a Proxy Cache Programming Assignment: Development of a Proxy Cache La prova avrà una valutazione da 0 a 3 punti da aggiungere alla media dell esito delle due prove di esonero scritte. La gestione dei thread non è da

More information

Building DHCP Automatically Eric Seigne

Building DHCP Automatically Eric Seigne ntroduction The articles aim is to present: Building DHCP Automatically a static DHCP server (in order to be able to detect new guests on the network such as people connecting their laptop and trying to

More information

TP JSP : déployer chaque TP sous forme d'archive war

TP JSP : déployer chaque TP sous forme d'archive war TP JSP : déployer chaque TP sous forme d'archive war TP1: fichier essai.jsp Bonjour Le Monde JSP Exemple Bonjour Le Monde. Après déploiement regarder dans le répertoire work de l'application

More information

GSAC CONSIGNE DE NAVIGABILITE définie par la DIRECTION GENERALE DE L AVIATION CIVILE Les examens ou modifications décrits ci-dessous sont impératifs. La non application des exigences contenues dans cette

More information

System Requirements Orion

System Requirements Orion Orion Date 21/12/12 Version 1.0 Référence 001 Auteur Antoine Crué VOS CONTACTS TECHNIQUES JEAN-PHILIPPE SENCKEISEN ANTOINE CRUE LIGNE DIRECTE : 01 34 93 35 33 EMAIL : JPSENCKEISEN@ORSENNA.FR LIGNE DIRECTE

More information

Repris de : https://thomas-leister.de/internet/sharelatex-online-latex-editor-auf-ubuntu-12-04-serverinstallieren/ Version Debian (de base)

Repris de : https://thomas-leister.de/internet/sharelatex-online-latex-editor-auf-ubuntu-12-04-serverinstallieren/ Version Debian (de base) Repris de : https://thomas-leister.de/internet/sharelatex-online-latex-editor-auf-ubuntu-12-04-serverinstallieren/ Version Debian (de base) Démarre un shell root $ sudo -s Installation des paquets de base

More information

Socket-based Network Communication in J2SE and J2ME

Socket-based Network Communication in J2SE and J2ME Socket-based Network Communication in J2SE and J2ME 1 C/C++ BSD Sockets in POSIX POSIX functions allow to access network connection in the same way as regular files: There are special functions for opening

More information

M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy

M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy UE3 : Marchés internationaux Amonts M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy Pascal ALBERTINI 14/05/2015 L7N 1 China Infrastructures Strategy Vous, Patrick KRON, Président d Alstom,

More information

Archived Content. Contenu archivé

Archived Content. Contenu archivé ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

Personnalisez votre intérieur avec les revêtements imprimés ALYOS design

Personnalisez votre intérieur avec les revêtements imprimés ALYOS design Plafond tendu à froid ALYOS technology ALYOS technology vous propose un ensemble de solutions techniques pour vos intérieurs. Spécialiste dans le domaine du plafond tendu, nous avons conçu et développé

More information

Sun Management Center Change Manager 1.0.1 Release Notes

Sun Management Center Change Manager 1.0.1 Release Notes Sun Management Center Change Manager 1.0.1 Release Notes Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817 0891 10 May 2003 Copyright 2003 Sun Microsystems, Inc. 4150

More information

Internet Socket. Socket Programming (C/Java) Simple Client-Server Example. Client-Server Architecture. Ying Cai Lecture 2. CS587x

Internet Socket. Socket Programming (C/Java) Simple Client-Server Example. Client-Server Architecture. Ying Cai Lecture 2. CS587x Internet Socket Socket Programming (C/Java) Lecture 3 Department of Computer Science Iowa State University Socket provides an interface to TCP/UDP Allow programs to write networking applications Socket

More information

CSS : petits compléments

CSS : petits compléments CSS : petits compléments Université Lille 1 Technologies du Web CSS : les sélecteurs 1 au programme... 1 ::before et ::after 2 compteurs 3 media queries 4 transformations et transitions Université Lille

More information

Archived Content. Contenu archivé

Archived Content. Contenu archivé ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

Archived Content. Contenu archivé

Archived Content. Contenu archivé ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

General Certificate of Education Advanced Level Examination June 2012

General Certificate of Education Advanced Level Examination June 2012 General Certificate of Education Advanced Level Examination June 2012 French Unit 4 Speaking Test Candidate s Material To be conducted by the teacher examiner between 7 March and 15 May 2012 (FRE4T) To

More information

An Android-based Instant Message Application

An Android-based Instant Message Application An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 mzheng@uwlax.edu Abstract One of the

More information

Introduction. GEAL Bibliothèque Java pour écrire des algorithmes évolutionnaires. Objectifs. Simplicité Evolution et coévolution Parallélisme

Introduction. GEAL Bibliothèque Java pour écrire des algorithmes évolutionnaires. Objectifs. Simplicité Evolution et coévolution Parallélisme GEAL 1.2 Generic Evolutionary Algorithm Library http://dpt-info.u-strasbg.fr/~blansche/fr/geal.html 1 /38 Introduction GEAL Bibliothèque Java pour écrire des algorithmes évolutionnaires Objectifs Généricité

More information

User Manual Culturethèque Thailand

User Manual Culturethèque Thailand User Manual Culturethèque Thailand Contents: 1. What can one do at Culturethèque?... 3 2. How to access Culturethèque?... 4 3. How to search on Culturethèque?... 5 4. How to access documents on Culturethèque?...

More information

Android Overview. Dongsu Han

Android Overview. Dongsu Han Android Overview Dongsu Han 1 Outline Java network programming overview Android Overview Android Emulator Overview Project Overview Getting Started 2 Java Network Programming Java.net.* programming model

More information

ATP Co C pyr y ight 2013 B l B ue C o C at S y S s y tems I nc. All R i R ghts R e R serve v d. 1

ATP Co C pyr y ight 2013 B l B ue C o C at S y S s y tems I nc. All R i R ghts R e R serve v d. 1 ATP 1 LES QUESTIONS QUI DEMANDENT RÉPONSE Qui s est introduit dans notre réseau? Comment s y est-on pris? Quelles données ont été compromises? Est-ce terminé? Cela peut-il se reproduire? 2 ADVANCED THREAT

More information

Brest. Backup : copy flash:ppe_brest1 running-config

Brest. Backup : copy flash:ppe_brest1 running-config Brest Backup : copy flash:ppe_brest1 running-config Cisco SF300-08 Mise en place des services : - Serveurs : 10.3.50.0/24 VLAN 2 (port 1) - DSI : 10.3.51.0/24 VLAN 3 (port 2) - Direction : 10.3.52.0/24

More information

Proposition d intervention

Proposition d intervention MERCREDI 8 NOVEMBRE Conférence retrofitting of social housing: financing and policies options Lieu des réunions: Hotel Holiday Inn,8 rue Monastiriou,54629 Thessaloniki 9.15-10.30 : Participation à la session

More information

Archived Content. Contenu archivé

Archived Content. Contenu archivé ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

Office of the Auditor General / Bureau du vérificateur général FOLLOW-UP TO THE 2010 AUDIT OF COMPRESSED WORK WEEK AGREEMENTS 2012 SUIVI DE LA

Office of the Auditor General / Bureau du vérificateur général FOLLOW-UP TO THE 2010 AUDIT OF COMPRESSED WORK WEEK AGREEMENTS 2012 SUIVI DE LA Office of the Auditor General / Bureau du vérificateur général FOLLOW-UP TO THE 2010 AUDIT OF COMPRESSED WORK WEEK AGREEMENTS 2012 SUIVI DE LA VÉRIFICATION DES ENTENTES DE SEMAINE DE TRAVAIL COMPRIMÉE

More information

Sun Enterprise Optional Power Sequencer Installation Guide

Sun Enterprise Optional Power Sequencer Installation Guide Sun Enterprise Optional Power Sequencer Installation Guide For the Sun Enterprise 6500/5500 System Cabinet and the Sun Enterprise 68-inch Expansion Cabinet Sun Microsystems, Inc. 901 San Antonio Road Palo

More information

Bibliothèque numérique de l enssib

Bibliothèque numérique de l enssib Bibliothèque numérique de l enssib European integration: conditions and challenges for libraries, 3 au 7 juillet 2007 36 e congrès LIBER How much does it cost? The LIFE Project Davies, Richard LIFE 2 Project

More information

Topics. 1. Network & IP 2. TCP Sockets 3. UDP Sockets CDA FS13 2

Topics. 1. Network & IP 2. TCP Sockets 3. UDP Sockets CDA FS13 2 Java networking Carlo U. Nicola, IMVS With extracts from slides/publications of : Dominik Gruntz, IMVS and from the book of K.J. Calvert and M.J. Donahoo TCP in Java Topics 1. Network & IP 2. TCP Sockets

More information

Table des matières. 2011 Hakim Benameurlaine 1

Table des matières. 2011 Hakim Benameurlaine 1 Table des matières 1 SERVICE FTP... 2 1.1 Introduction... 2 1.2 Paquetages... 2 1.3 Démarrer le service vsftpd... 2 1.4 Tester le service vsftpd... 3 1.5 Fichiers de configuration... 3 1.5.1 etc/vsftpd/ftpusers...

More information

1-20020138637 26-sept-2002 Computer architecture and software cells for broadband networks Va avec 6526491

1-20020138637 26-sept-2002 Computer architecture and software cells for broadband networks Va avec 6526491 Les brevets CELL 14 décembre 2006 1 ARCHITECTURE GENERALE 1-20020138637 26-sept-2002 Computer architecture and software cells for broadband networks 6526491 2-6526491 25-févr-03 Memory protection system

More information

Measuring Policing Complexity: A Research Based Agenda

Measuring Policing Complexity: A Research Based Agenda ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

TDD et Erlang. Nicolas Charpentier - Dominic Williams. 30 Mars 2009. charpi.net - dominicwilliams.net

TDD et Erlang. Nicolas Charpentier - Dominic Williams. 30 Mars 2009. charpi.net - dominicwilliams.net TDD et Erlang Nicolas Charpentier - Dominic Williams charpi.net - dominicwilliams.net 30 Mars 2009 c N.Charpentier - D.Williams TDD et Erlang 1/23 Pourquoi certaines startups s interessent elles à Erlang

More information

Today we're going to officially start the program by working on a unit focused on Spoken production.

Today we're going to officially start the program by working on a unit focused on Spoken production. Today we're going to officially start the program by working on a unit focused on Spoken production. You will be evaluated on a spoken production task at the end of the unit. You will also train the other

More information

ENABLING OBJECTIVE AND TEACHING POINTS. DRILL: 401.02 5. TIME: One 30 minutes period. 6. METHOD/APPROACH: a. demonstration; and. b. performance.

ENABLING OBJECTIVE AND TEACHING POINTS. DRILL: 401.02 5. TIME: One 30 minutes period. 6. METHOD/APPROACH: a. demonstration; and. b. performance. CHAPTER 4: LESSON SPECIFICATIONS COURSE TITLE: GREEN STAR COURSE ENABLING OBJECTIVE AND TEACHING POINTS CTS NUMBER: A-CR-CCP-116/PC-001 TRAINING DETAILS DRILL: 401.02 5. TIME: One 30 minutes period. 1.

More information

Threads in der Client/Server-Programmierung mit Java

Threads in der Client/Server-Programmierung mit Java Threads in der Client/Server-Programmierung mit Java Zahlenraten: Protokoll CLIENT / Comm? Comm! / max / SERVER Comm? / Comm! / 100 trial / / cmp(trial) [ cmp(trial) = < or cmp(trial) = > ] [ answer =

More information

Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab.

Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab. Chulalongkorn University Name International School of Engineering Student ID Department of Computer Engineering Station No. 2140105 Computer Programming Lab. Date Lab 2 Using Java API documents, command

More information

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking

More information

MASTER A DISTANCE «CLE/ CLS EN MILIEU SCOLAIRE»

MASTER A DISTANCE «CLE/ CLS EN MILIEU SCOLAIRE» Université d Artois U.F.R. de Langues Etrangères MASTER A DISTANCE Master Arts, Lettres et Langues Spécialité «CLE/ CLS en milieu scolaire» Voie Professionnelle ou Voie Recherche University of Artois Faculty

More information

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers DNS: Domain Name System DNS: Domain Names People: many identifiers: SSN, name, Passport # Internet hosts, routers: Always: IP address (32 bit) - used for addressing datagrams Often: name, e.g., nifc14.wsu.edu

More information

Corso di Reti di Calcolatori

Corso di Reti di Calcolatori Corso di Reti di Calcolatori UNICAL Facoltà di Ingegneria a.a. 2002/2003 Esercitazione sul networking in Java (1 a parte) paolo.trunfio@deis.unical.it 1 java.net.inetaddress static InetAddress getbyname(string

More information

Il est repris ci-dessous sans aucune complétude - quelques éléments de cet article, dont il est fait des citations (texte entre guillemets).

Il est repris ci-dessous sans aucune complétude - quelques éléments de cet article, dont il est fait des citations (texte entre guillemets). Modélisation déclarative et sémantique, ontologies, assemblage et intégration de modèles, génération de code Declarative and semantic modelling, ontologies, model linking and integration, code generation

More information

Introduction ToIP/Asterisk Quelques applications Trixbox/FOP Autres distributions Conclusion. Asterisk et la ToIP. Projet tuteuré

Introduction ToIP/Asterisk Quelques applications Trixbox/FOP Autres distributions Conclusion. Asterisk et la ToIP. Projet tuteuré Asterisk et la ToIP Projet tuteuré Luis Alonso Domínguez López, Romain Gegout, Quentin Hourlier, Benoit Henryon IUT Charlemagne, Licence ASRALL 2008-2009 31 mars 2009 Asterisk et la ToIP 31 mars 2009 1

More information

ACP-EU Cooperation Programme in Science and Technology (S&T II) / Programme de Coopération ACP-UE pour la Science et la Technologie

ACP-EU Cooperation Programme in Science and Technology (S&T II) / Programme de Coopération ACP-UE pour la Science et la Technologie ACP Science and Technologie Programme Programme Management Unit ACP-EU Cooperation Programme in Science and Technology (S&T II) / Programme de Coopération ACP-UE pour la Science et la Technologie EuropeAid/133437/D/ACT/ACPTPS

More information

Communicating with a Barco projector over network. Technical note

Communicating with a Barco projector over network. Technical note Communicating with a Barco projector over network Technical note MED20080612/00 12/06/2008 Barco nv Media & Entertainment Division Noordlaan 5, B-8520 Kuurne Phone: +32 56.36.89.70 Fax: +32 56.36.883.86

More information

Java Programming: Sockets in Java

Java Programming: Sockets in Java Java Programming: Sockets in Java Manuel Oriol May 10, 2007 1 Introduction Network programming is probably one of the features that is most used in the current world. As soon as people want to send or

More information