简体   繁体   English

如何与TOSMBClient库保持samba连接

[英]How to keep samba connection with TOSMBClient Library

I'm following TOSMBClient library link:TOSMBClient to share file from pc to my iPhone,This library is working to connect and copy file to my iPhone. 我正在关注TOSMBClient库链接:TOSMBClient,可以将文件从PC共享到我的iPhone,该库正在工作以连接文件并将其复制到我的iPhone。 But it takes very long time to connect to host and every time when copy file is done samba will disconnect. 但是连接到主机需要很长时间,每次复制文件完成后,samba都会断开连接。 I want to keep samba connection. 我想保持samba连接。

Have anyone have idea or used to work with TOSMBClient library please help or suggest idea. 有任何人有想法或曾经使用过TOSMBClient库,请帮助或提出想法。

I'm the original developer of TOSMBClient . 我是TOSMBClient的原始开发人员。 :) :)

The library is a thin Objective-C wrapper around another library called libdsm . 该库是另一个名为libdsm的库的薄型Objective-C包装器。 The process of connecting to a host is at libdsm's level, so if your particular connection is slow, there's not a lot that can be done on the TOSMBClient level. 连接到主机的过程是在libdsm级别上,因此,如果您的特定连接速度很慢,则在TOSMBClient级别上可以做的事情很多。 It might be worth reporting an issue on libdsm 's Github repo describing your hardware setup. 可能值得报告libdsm的Github存储库中描述您的硬件设置的问题。

The connection dropping after a file copy operation is complete is curious. 文件复制操作完成后断开连接很奇怪。 I can't be sure where that issue might be happening. 我不确定该问题可能在哪里发生。 Again, more information would be required. 同样,将需要更多信息。 A complete set of steps to reproduce would be great. 完整的复制步骤非常棒。 If you get the chance, feel free to file another issue on the GitHub! 如果有机会,请随时在GitHub上提交另一个问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM