TransportAddress[] listTa = new TransportAddress[socketInfos.size()];
for(int i=0; i<socketInfos.size(); i++){
SocketInfo socketInfo = socketInfos.get(i);
int sslport = socketInfo.port();
String host = socketInfo.host();
short short_port = Utility.intToShort(sslport);
TransportAddress ta = new TransportAddress(host, short_port);
listTa[i] = ta;
}
return listTa;