开发者

C# chat wpf application

As I understand, it's possible to write a chat application (server + client) without any web server. As a server we can use j开发者_开发百科ust a class listening to TCP port. As a client we can also use a class.

So it's possible to write this application within one WPF application, is it so or not?


Basically yes. You can do this easily using Windows Communication Foundation (WCF) services. But at least one of your chat endpoints would have to specify the IP address of the other.

Note that this has got nothing to do with WPF. WPF is just the way of drawing the application / controls. This would work with Windows Forms applications as well.


Yes, it's possible to do just as you've described... one class for the server and one for the client.


I think I'm understanding you correctly, but if not let me know.

It is possible to write a chat client in a single WPF application, however if you're building a chat application in the client-server model then you'll also need a chat server, which in all likelihood will not be a WPF app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜