org.csource.fastdfs
类 ServerInfo

java.lang.Object
  继承者 org.csource.fastdfs.ServerInfo

public class ServerInfo
extends Object

Server Info

版本:
Version 1.7
作者:
Happy Fish / YuQing

字段摘要
protected  String ip_addr
           
protected  int port
           
 
构造方法摘要
ServerInfo(String ip_addr, int port)
          Constructor
 
方法摘要
 Socket connect()
          connect to server
 String getIpAddr()
          return the ip address
 int getPort()
          return the port of the server
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ip_addr

protected String ip_addr

port

protected int port
构造方法详细信息

ServerInfo

public ServerInfo(String ip_addr,
                  int port)
Constructor

参数:
ip_addr - address of the server
port - the port of the server
方法详细信息

getIpAddr

public String getIpAddr()
return the ip address

返回:
the ip address

getPort

public int getPort()
return the port of the server

返回:
the port of the server

connect

public Socket connect()
               throws IOException
connect to server

返回:
connected Socket object
抛出:
IOException


Copyright © 2017. All rights reserved.