You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Transmitter.java 583B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package chatprogramm.model;
  7. import java.io.IOException;
  8. /**
  9. *
  10. * @author Gerhard
  11. */
  12. public class Transmitter
  13. {
  14. Server server;
  15. Client client;
  16. public Transmitter()
  17. {
  18. }
  19. public void createServer(int port) throws IOException
  20. {
  21. server = new Server(port);
  22. }
  23. public void createClient(int port, String ip) throws IOException
  24. {
  25. client = new Client(port, ip);
  26. }
  27. }