switching to host / network ordering swapping

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-04-18 16:37:16 +00:00
parent 3b8d819f30
commit 377f6397ac
2 changed files with 10 additions and 10 deletions

View File

@@ -596,10 +596,10 @@ wxSocketClient *wxFTP::GetPort()
wxSscanf(straddr, wxT("%d,%d,%d,%d,%d,%d"),
&a[2],&a[3],&a[4],&a[5],&a[0],&a[1]);
wxUint32 hostaddr = (wxUint16)a[5] << 24 |
(wxUint16)a[4] << 16 |
(wxUint16)a[3] << 8 |
a[2];
wxUint32 hostaddr = (wxUint16)a[2] << 24 |
(wxUint16)a[3] << 16 |
(wxUint16)a[4] << 8 |
a[5];
wxUint16 port = (wxUint16)a[0] << 8 | a[1];
wxIPV4address addr;