C#如何修改此开源项目以翻转连接? [英] C# How can i modify this open-source project to flip the connection?

查看:92
本文介绍了C#如何修改此开源项目以翻转连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,您是codeproject的新手,正在寻求帮助(也在其他地方寻求帮助,但他们似乎并不知道)


好的,我遇到的问题是我已经下载了一个开源C#项目(称为yoozy.net-http://yoozy.sourceforge.net/),该项目可让您访问运行yoozy的服务器上的文件.

我想更改它,以使其与服务器应用程序监听客户端相反,而不是通过服务器应用程序监听客户端,因此服务器"应用程序将以这种方式连接到客户端,我将能够使用它来访问我的文件我在学校或父亲时回家.

我有一些c#知识,但是没有套接字和其他东西,我尝试学习并制作了一个聊天应用程序,但是yoozy的两个不同应用程序使用不同的东西相互连接(netstream.cs是不同的),所以我不能只交换流.connect("127.0.0.1",123)for stream.listen();

如果有人可以看一下并帮助我(并告诉我他们做了什么),将不胜感激
谢谢

这是yoozy的来源:http://sourceforge.net/projects/yoozy/files/Yoozy/Yoozy_1.8/yoozy1.8__src.zip/download

first of all, hi new to codeproject looking for some help (asked at other places too but they didnt seem to know)


ok the problem i have is i have downloaded an open source C# project (called yoozy.net - http://yoozy.sourceforge.net/) which allows you to access the files on a server running yoozy

i want to change it so that instead of the server application listening for the client, it does it the opposite way round so the ''server'' app connects to the client this way i will be able to use it to access my files at home when im at school or at my dads.

i have some c# knowledge however not in sockets and stuff and i have tried to learn and made a chat application but the two different apps from yoozy use different things to connect to each other (netstream.cs are different) so i cant just swap stream.connect("127.0.0.1",123) for stream.listen();

if someone could have a look and help me (and tell me what they did) it will be appreciated
thankyou

here is the source for yoozy : http://sourceforge.net/projects/yoozy/files/Yoozy/Yoozy_1.8/yoozy1.8__src.zip/download

推荐答案

这可能很困难,因为交换客户端/服务器将改变Yooozy的核心架构.

鉴于您只想从外部访问PC上的文件,就不能仅从计算机上运行服务器.如果这不是您要追求的目标,我敢说还有其他开放源代码的东西可以满足您的要求,这比完成项目要容易得多.

当然,所有这些都假定您没有做一些有趣的事情:-).
This is probably difficult, as swapping the client/server will change the core architecture of Yooozy.

Given that you just want to access files on your PC from outside, can''t you just run the server from your machine. If this isn''t what you are after, I dare say there is other open source stuff that will do what you want which will be easier than fettling the project.

All this, of course, pre-supposes that you aren''t doing for someting interesting to do :-).


感谢您的回复:D

我不确定是否会改变它的核心,因为发送/接收的数据仍然是相同的,我只需要更改它从:(

也许我可以在每个插座上添加另一个插座,然后像这样进行连接,然后只使旧的插座=新的插座即可?嗯,我不太确定

而且我知道还有其他开源的东西,但是我喜欢yoozy显示文件和东西的方式:P
thanks for the response :D

im not sure if it would change the core of it, as the data being sent/recieved will still be the same, i just need to change the sides it connects from :(

maybe i could add another socket to each and then connect like that and just make the old sockets = the new one? hmm im not so sure

and i know there is other open source stuff but i love the way yoozy shows files and stuff :P


这篇关于C#如何修改此开源项目以翻转连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆