public class Connections extends Object
Constructor and Description |
---|
Connections(int port,
InetAddress ip)
Create a new connection class
|
public Connections(int port, InetAddress ip)
port
- por of the serverinetAddress
- ip of the serverpublic InetAddress getIP()
public int getPort()