mirror of https://github.com/aria2/aria2
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use localhost instead of 127.0.0.1 * test/FtpConnectionTest.cc * test/MSEHandshakeTest.ccpull/1/head
parent
1c46a26ae6
commit
2e9edd316a
|
@ -1,3 +1,9 @@
|
||||||
|
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Use localhost instead of 127.0.0.1
|
||||||
|
* test/FtpConnectionTest.cc
|
||||||
|
* test/MSEHandshakeTest.cc
|
||||||
|
|
||||||
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added operator T*
|
Added operator T*
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
req->setUrl("ftp://localhost/dir/file.img");
|
req->setUrl("ftp://localhost/dir/file.img");
|
||||||
|
|
||||||
_clientSocket.reset(new SocketCore());
|
_clientSocket.reset(new SocketCore());
|
||||||
_clientSocket->establishConnection("127.0.0.1", _listenPort);
|
_clientSocket->establishConnection("localhost", _listenPort);
|
||||||
|
|
||||||
while(!_clientSocket->isWritable(0));
|
while(!_clientSocket->isWritable(0));
|
||||||
_clientSocket->setBlockingMode();
|
_clientSocket->setBlockingMode();
|
||||||
|
|
|
@ -49,7 +49,7 @@ static std::pair<SharedHandle<SocketCore>,
|
||||||
|
|
||||||
std::pair<std::string, uint16_t> receiverAddrInfo;
|
std::pair<std::string, uint16_t> receiverAddrInfo;
|
||||||
receiverServerSock.getAddrInfo(receiverAddrInfo);
|
receiverServerSock.getAddrInfo(receiverAddrInfo);
|
||||||
initiatorSock->establishConnection("127.0.0.1", receiverAddrInfo.second);
|
initiatorSock->establishConnection("localhost", receiverAddrInfo.second);
|
||||||
initiatorSock->setBlockingMode();
|
initiatorSock->setBlockingMode();
|
||||||
|
|
||||||
SharedHandle<SocketCore> receiverSock(receiverServerSock.acceptConnection());
|
SharedHandle<SocketCore> receiverSock(receiverServerSock.acceptConnection());
|
||||||
|
|
Loading…
Reference in New Issue