erwan beau
This commit is contained in:
parent
2c8304e303
commit
1afd59c3cc
951
APL1.2/SCR1.2/TP13/] [ -i interface ]
Normal file
951
APL1.2/SCR1.2/TP13/] [ -i interface ]
Normal file
File diff suppressed because it is too large
Load Diff
0
APL1.2/SCR1.2/TP13/log.txt
Normal file
0
APL1.2/SCR1.2/TP13/log.txt
Normal file
24
APL1.2/SCR1.2/TP13/reponsestp13.txt
Normal file
24
APL1.2/SCR1.2/TP13/reponsestp13.txt
Normal file
@ -0,0 +1,24 @@
|
||||
tcpdump : permet de visualiser le trafic sur le reseau
|
||||
wireshark : permet aussi de d ́ecrire le trafic sur un reseau
|
||||
man pcap-filter : pour avoir la mani`ere de construire ces expressions
|
||||
|
||||
I)
|
||||
1) ip address ou ip a
|
||||
2) ip address show dev lo
|
||||
3) ip link
|
||||
4) ip link
|
||||
5) ip neighbour ou ip n, ARP -> address resolution protocol.
|
||||
6) ip -r n, DNS -> domaine name server
|
||||
7) ip route ou ip r
|
||||
|
||||
II)
|
||||
1) ping -c 10 172.16.2.45
|
||||
2) tcpdump -i eno1 host 172.16.2.45 and 172.16.2.44, tcpdump -i eno1 -n host 172.16.2.45 and 172.16.2.44
|
||||
3) on ajoute -e
|
||||
4)
|
||||
5)-f
|
||||
6)tshark -i eno1 -f "host____ and host____"
|
||||
|
||||
III)
|
||||
1)
|
||||
2)
|
5272
APL2.1/StarUML/Exercice1.mdj
Normal file
5272
APL2.1/StarUML/Exercice1.mdj
Normal file
File diff suppressed because it is too large
Load Diff
7534
APL2.1/StarUML/Exercice2.mdj
Normal file
7534
APL2.1/StarUML/Exercice2.mdj
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,36 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Rose {
|
||||
public static void main(String[] args) {
|
||||
|
||||
Color vert = new Color(0,255,0);
|
||||
Color noir = new Color(0,0,0);
|
||||
JFrame fenetre = new JFrame("Question");
|
||||
fenetre.setSize(500, 300);
|
||||
fenetre.setLocation(0, 0);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
Dimension minSize = new Dimension(300, 150);
|
||||
fenetre.setMinimumSize(minSize);
|
||||
FlowLayout flwLayout = new FlowLayout();
|
||||
GridLayout grdLayout = new GridLayout(4, 1);
|
||||
fenetre.setLayout(grdLayout);
|
||||
JLabel question = new JLabel("Aimez-vous les chiens ?");
|
||||
question.setHorizontalAlignment(JLabel.CENTER);
|
||||
JPanel boutons = new JPanel();
|
||||
boutons.setLayout(flwLayout);
|
||||
JButton bouton1 = new JButton("Oui");
|
||||
JButton bouton2 = new JButton("NSPP");
|
||||
JButton bouton3 = new JButton("Non");
|
||||
boutons.add(bouton1);
|
||||
boutons.add(bouton2);
|
||||
boutons.add(bouton3);
|
||||
fenetre.add(new JLabel(""));
|
||||
fenetre.add(question);
|
||||
fenetre.add(boutons);
|
||||
fenetre.add(new JLabel(""));
|
||||
fenetre.setVisible(true);
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -10,7 +10,6 @@ public class TestMétrique{
|
||||
System.out.println("Largeur imageable = "+feuille.getImageableWidth());
|
||||
System.out.println("X imageable = "+feuille.getImageableX());
|
||||
System.out.println("Y imageable = "+feuille.getImageableY());
|
||||
|
||||
System.out.println("\nMILLIMETRE\n---------------");
|
||||
System.out.println("Hauteur = "+feuille.getMetriqueHeight());
|
||||
System.out.println("Largeur = "+feuille.getMetriqueWidth());
|
||||
@ -18,11 +17,8 @@ public class TestMétrique{
|
||||
System.out.println("Largeur imageable = "+feuille.getMetriqueImageableWidth());
|
||||
System.out.println("X imageable = "+feuille.getMetriqueImageableX());
|
||||
System.out.println("Y imageable = "+feuille.getMetriqueImageableY());
|
||||
|
||||
feuille.setMetriqueSize(100,100);
|
||||
feuille.setMetriqueImageableArea(10,10,80,80);
|
||||
|
||||
|
||||
System.out.println("\n1/72 DE POUCE\n---------------");
|
||||
System.out.println("Hauteur = "+feuille.getHeight());
|
||||
System.out.println("Largeur = "+feuille.getWidth());
|
||||
@ -30,7 +26,6 @@ public class TestMétrique{
|
||||
System.out.println("Largeur imageable = "+feuille.getImageableWidth());
|
||||
System.out.println("X imageable = "+feuille.getImageableX());
|
||||
System.out.println("Y imageable = "+feuille.getImageableY());
|
||||
|
||||
System.out.println("\nMILLIMETRE\n---------------");
|
||||
System.out.println("Hauteur = "+feuille.getMetriqueHeight());
|
||||
System.out.println("Largeur = "+feuille.getMetriqueWidth());
|
||||
@ -38,6 +33,5 @@ public class TestMétrique{
|
||||
System.out.println("Largeur imageable = "+feuille.getMetriqueImageableWidth());
|
||||
System.out.println("X imageable = "+feuille.getMetriqueImageableX());
|
||||
System.out.println("Y imageable = "+feuille.getMetriqueImageableY());
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user