Multiplayer game/ Where to start [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've recently made a 2 player snake game in c#. Now its working when player on one pc with 2 controllers connected. But what i actually want to implement is that it can be played on 2 pc's which each connect to a server, or 1 other pc connecting to a server on my pc.
My question is does anybody know where to start or what library is best for me to use?
Greetings,

You asked a general question so I'll give you a general answer.
First thing you should know, that in order for 2 computers to interact with each other you should create a project for the client side and a project for the server side. then you need to connect the client to the server.
you should choose the type of the host project according to your needs - is it a wpf application? a web application? and so on.
edit: I suggest you to google "Windows Using SignalR in WinForms and WPF sample" to see an example of a project using signalR as host and web /WinForm / WPF as clients.

Related

End To End Encrypted Chat Application using Windows Forms and . Net C#. Where do I start with encryption? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I have an assignment at school to create a chat application. I have created this using SignalR to ensure real time communication. However, our teacher wanted also end to end encryption.
I have 2 projects: 1 server (which contains the hub) and the Client, which communicates directly with the database to load the messages on log-in. When a user is online, the user communicates directly through SignalR connections.
I need to find a way to make this communication secure (teacher suggested Diffie Hellman to exchange keys). It would really be appreciated if any of you guys could put me on the right road where to start or if you could suggest me some articles which could help.
Note: I am a Java Developer and am new to .Net Framework and C#.
If any of you is interested here is the github link to my project: https://github.com/joanjanku2000/chat-app/tree/jjanku/feature/chat-app
You need to read documentation first in order to choose the right encoding/decoding technique.
Read these :
https://learn.microsoft.com/en-us/dotnet/standard/security/cryptography-model
https://learn.microsoft.com/en-us/dotnet/standard/security/generating-keys-for-encryption-and-decryption
https://www.c-sharpcorner.com/article/encryption-and-decryption-using-a-symmetric-key-in-c-sharp/

C#, remote screenshot without client and server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I just tried a program demonstrated in C# on YouTube. The video shows how to build a client/server based program to capture desktop remotely, and it works perfectly. Now I have a question. Is is possible to do the same job without the client/server architecture? Is there some kind of relative windows API that I can access remotely? My imagination is just to click a button on computer A(with specific program) and receive a screenshot from computer B(without specific program) through network. Is is possible? Thank you very much!
The thing is, that when you access "some API" remotely and get result from that "some API" it's called a client / server architecture, where you is a client and "some API" is a server.
You can't receive something if there is no one to give))
If you wanted to ask "is there anything in windows that would give me a screenshot without injecting anything and etc?" - then:
if you don't care about laws, theoretically, you could find some bug in system itself or applications that are running on it, and through them get access to that computer and make it do whatever you want, that's called hacking, the very black hacking, and that type of things are hard to do.
if you care just a little about any of laws and don't want to visit a prison, then the answer is no.

Remote Screen Viewing application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am looking for a way to remotely share my screen with another computer, the main problem is that I need to integrate it into my current C# application. I have been doing research and was looking for someone who has already done this.
I am thinking from my research that I will need a piece of client software installed on the target machine to view the screen.
In theory I would like to view six separate screens from one computer and if possible have the ability to control the remote screen, just to verify I do not want to have a Remote Desktop like connection but a live view of the target computer.
Hoping someone can help.
Cheers,
Ben
You may need to implement piece of remote desktop in your code. There are plenty of resources addressed this problem some of them below.
http://bobcravens.com/2009/04/create-a-remote-desktop-viewer-using-c-and-wcf/
http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET
http://stackoverflow.com/questions/10311770/
http://www.codeproject.com/Articles/33979/Multi-RDP-Client-NET

Android call a .net webservice that needs to communicate with Windows Form Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i'll try to explain you my problem.
I have to call a .net webservice with my android device.
But, this webservice needs to add items on a queue on an another service who's running on my server.
Android ---> .net WebService ---> add items on queue on another Windows Form Application.
In brief I want my application to communicate with my Windows Form Application without using database
Do you think this is possible?
If it's possible have you any idea how do it ?
Use socket to communicate with your server application.
http://msdn.microsoft.com/fr-fr/library/system.net.sockets.socket(v=vs.110).aspx

I Have a windows form application in C# and want to publish it in a LAN via ASP.NET ?? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have made a C# Windows Forms application and connected it with Microsoft SQL Server.
I want to allow all machines in the LAN to use the program and connect to the SQL server but without having to set up the program on all the machines.
I wondered if I can do this with ASP.NET.
How do I do it? Are there any tutorials for this sort of task?
Anything on the difference between web forms, MVC Web API .. ETC.
It's very easy! Create an empty Web Forms project, drag controls onto it in the same manner you did with your desktop application. Then add your code, objects, logic, etc => see what you've got in the browser and if you like that publish it to the server and guess what?...RIGHT! Now it's accessible over the network without any need to install the desktop version.
Hope that answers your question.

Categories

Resources