Examples of Adress


Examples of classes.Adress

*
* **/
public class Server {
  public static void main(String[] ar) throws IOException {
     //Connection adresses
     Adress _connAdress = new Adress(6000,"127.0.0.2");
     //Server interaction
     ServerUserList _sui = new ServerUserList();
    
     //Print connections params
     //System.out.println("Server: connection's params ");
     //_connAdress.printInfo();
    
     ServerSocket _servSocket = new ServerSocket(_connAdress.getPort());
     System.out.println("Server: server started");
     try {
       while (true) {
         Socket _socket = _servSocket.accept();
             try {
View Full Code Here

Examples of classes.Adress

*
* **/
public class MultiClient {
    public static void main(String[] ar) {
      //Connection adresses
      Adress _connAdress = new Adress(6000,"127.0.0.2");
     
      //System.out.println("Client: connection's params ");
     //Print connections params
     //_connAdress.printInfo();

      try {
            Socket _socket = new Socket(_connAdress.getIPAdress(), _connAdress.getPort()); // ������� ����� ��������� IP-����� � ���� �������.
           
            // Take in/output sreams
            InputStream _inputStream = _socket.getInputStream();
            OutputStream _outputStream = _socket.getOutputStream();

View Full Code Here

Examples of de.linwave.junit.inheritance.Adress

    Band theBeatles = new Band("THE BEATLES");
    Artist ringo = new Artist("Ringo Starr");
    Artist paul = new Artist("Paul Mc.Cartney");

    Artist john = new Artist("John Lennon");
    Adress adress = new Adress("Kings Road 1", "London", 12345);
    john.setAdress(adress);

    Artist george = new Artist("George Harrison");
    theBeatles.getAritsts().addAll(Arrays.asList(ringo, paul, john, george));
    //
View Full Code Here

Examples of de.linwave.junit.inheritance.Adress

    Band theBeatles = new Band("THE BEATLES");
    Artist ringo = new Artist("Ringo Starr");
    Artist paul = new Artist("Paul Mc.Cartney");

    Artist john = new Artist("John Lennon");
    Adress adress = new Adress("Kings Road 1", "London", 12345);
    john.setAdress(adress);

    Artist george = new Artist("George Harrison");
    theBeatles.getAritsts().addAll(Arrays.asList(ringo, paul, john, george));
    //
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.