Improved the 'AutoConnect' information

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@646 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-07-10 21:26:10 +00:00
parent 67a27744f8
commit 80e1be2839

View file

@ -378,20 +378,20 @@ bool p3Peers::getPeerDetails(std::string id, RsPeerDetails &d)
{ {
if (pcs.connecttype == RS_NET_CONN_TCP_ALL) if (pcs.connecttype == RS_NET_CONN_TCP_ALL)
{ {
autostr << "TCP"; autostr << "Connected: TCP";
} }
else if (pcs.connecttype == RS_NET_CONN_UDP_ALL) else if (pcs.connecttype == RS_NET_CONN_UDP_ALL)
{ {
autostr << "UDP"; autostr << "Connected: UDP";
} }
else else
{ {
autostr << "Unknown Connect Method!"; autostr << "Connected: Unknown";
} }
} }
else else
{ {
autostr << "Idle"; autostr << RsPeerStateString(pcs.state);
} }
d.autoconnect = autostr.str(); d.autoconnect = autostr.str();