oogp2p.network
Class Client
java.lang.Object
oogp2p.network.Client
- All Implemented Interfaces:
- UserNameInterface
- public class Client
- extends java.lang.Object
- implements UserNameInterface
|
Constructor Summary |
Client(java.lang.String host,
int port)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
socket
public java.net.Socket socket
reader
public Reader reader
consoleWindow
public ConsoleWindow consoleWindow
myPort
int myPort
myUserName
java.lang.String myUserName
myIRFactory
InfoReceivedFactory myIRFactory
myUtils
java.util.AbstractMap myUtils
SECONDS
private static int SECONDS
out
private java.io.ObjectOutputStream out
Client
public Client(java.lang.String host,
int port)
throws java.io.IOException
initialize
public void initialize()
showConsole
public void showConsole()
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName in interface UserNameInterface
setUserName
public void setUserName(java.lang.String username)
- Specified by:
setUserName in interface UserNameInterface
getOutputStream
public java.io.ObjectOutputStream getOutputStream()
getInputStream
public java.io.ObjectInputStream getInputStream()
usage
public static void usage()
sendNettable
public boolean sendNettable(Nettable n)
main
public static void main(java.lang.String[] args)