NSPOSIXErrorDomain Code=61“操作无法完成。连接被拒绝”
我在特定环境中通过 WiFi 网络在 FTP 服务器上发送多个文件时遇到了一个奇怪的问题。我使用自己自制的 ftp 客户端(在套接字上制作)。
- 当我在环境“E1”中测试在服务器“S1”上发送文件的传输时,一切正常。
- 当我测试传输将文件发送到“E1”中的服务器“S2”时,一切都正常。
- 当有人将文件发送到“E2”中的我的服务器“S1”时,一切都正常。 但是
当一个人向“E2”中的服务器“S2”发送文件时,传输在发送一个文件后就会中断(!)并出现错误:
<块引用>错误域=NSPOSIXErrorDomain代码=61“该操作无法 完全的。连接被拒绝”
更新:还有一件更重要的事情:该人可以通过其他设备(诺基亚和 Symbian)成功地将相同的文件发送到“E2”中的“S2”。
我真的不知道是什么正在进行吗?
'S1' - my ftp server in my location
'E1' - my environment: an iOS device, WiFi network W1, firewall F1,
'S2' - ftp server in other country
'E2' - environment in other country: an iOS device, WiFi network W2, firewall F2
I have a strange problem sending more than one file on FTP server via WiFi network in a specific environment. I use my own, self-made ftp client (made on sockets).
- When I test the transfer sending files on my server 'S1' in my environment 'E1' everything is ok.
- When I test the transfer sending files to server 'S2' in 'E1' everything is ok also.
- When a person is sending files to my server 'S1' in 'E2' everything is ok, too.
But When a person is sending files to his server 'S2' in 'E2' the transfer is broken after sending one file (!) and the error appears:
Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’t be
completed. Connection refused"
UPDATE: And one more important thing: The person can send the same files with success to 'S2' in 'E2' via other device (Nokia with Symbian).
I have really no idea what's going on. Do you?
'S1' - my ftp server in my location
'E1' - my environment: an iOS device, WiFi network W1, firewall F1,
'S2' - ftp server in other country
'E2' - environment in other country: an iOS device, WiFi network W2, firewall F2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 iOS 进入睡眠状态,posix 网络功能不会导致 iOS 打开 WiFi 无线电。您必须使用一些 NS 方法来使其唤醒并开始连接。
The posix network functions will not cause iOS to turn on the WiFi radio if it has gone to sleep. You must use some NS-methods to make it wake and begin to connect.