connection.usePort = peerListenPort;
_peer_manager.helloFromPeer(peerIP, peerPort, userHash, clientID,
peerListenPort, tagList, serverIP, serverPort);
Server connected_server = _server_manager.getConnectedServer();
byte[] server_ip = null;
int server_port = 0;
ClientID client_id = null;
if (connected_server != null) {
server_ip = connected_server.getAddressAsByte();
server_port = connected_server.getPort();
client_id = connected_server.getClientID();
}
Packet packet = PacketFactory.getPeerHelloAnswerPacket(
_config_manager.getUserHash(), client_id, _config_manager
.getTCP(), _config_manager.getNickName(),
server_ip, server_port, E2DKConstants.DefaultJMuleFeatures);