Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main;
- import java.io.ObjectInputStream;
- import java.io.ObjectOutputStream;
- import java.net.Socket;
- import java.util.HashMap;
- public class Connection extends Socket {
- String username;
- ObjectOutputStream output;
- ObjectInputStream input;
- Socket connection;
- public Connection(String username ,Socket connection, ObjectOutputStream output, ObjectInputStream input)
- {
- username = this.username;
- output = this.output;
- input = this.input;
- connection = this.connection;
- }
- public Socket getSocket()
- {
- return connection;
- }
- public ObjectOutputStream getOutput()
- {
- return output;
- }
- public ObjectInputStream getInput()
- {
- return input;
- }
- public String getUsername()
- {
- return username;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement