|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csource.fastdfs.ServerInfo
public class ServerInfo
Server Info
Field Summary | |
---|---|
protected java.lang.String |
ip_addr
|
protected int |
port
|
Constructor Summary | |
---|---|
ServerInfo(java.lang.String ip_addr,
int port)
Constructor |
Method Summary | |
---|---|
java.net.Socket |
connect()
connect to server |
java.lang.String |
getIpAddr()
return the ip address |
int |
getPort()
return the port of the server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String ip_addr
protected int port
Constructor Detail |
---|
public ServerInfo(java.lang.String ip_addr, int port)
ip_addr
- address of the serverport
- the port of the serverMethod Detail |
---|
public java.lang.String getIpAddr()
public int getPort()
public java.net.Socket connect() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |