C
C#17mo ago
drls10

❔ forms app that can communicate with other apps

I want to make a forms app that can send and retrieve data from another forms app if given a certain sring that is generated to join a network (like in game muck) but I dont know where to start or how to start
27 Replies
JakenVeina
JakenVeina17mo ago
are we talking about two apps running on different machines? over local network? over the internet? are you actually talking about two different apps, or just the same app running on different machines? do you have any control over this "other" app, if that's what we're talking about?
Buddy
Buddy17mo ago
For games it is highly recommended to use both UDP and TCP. or add reliablity on top of UDP (rUDP, which is somewhat difficult to implement) use UDP if you don't care if data gets lost, but you need to send things such as position packets. and use TCP if you want to guarantee they arrive and in order as well, such as when receiving login packets, scene load, entities spawning / despawning, etc.
drls10
drls10OP17mo ago
diffrent computers diffrent network
JakenVeina
JakenVeina17mo ago
same app, though?
drls10
drls10OP17mo ago
yes same app but Im thinking to add 1 or 2 diffrent thing s to another one
JakenVeina
JakenVeina17mo ago
well, you're going to need to either establish a server or look into how peer-to-peer networking works which also still kinda involves a server the majority of the time the server serves as the well-established connection point
drls10
drls10OP17mo ago
its not a game its more like a chat app or something similar
JakenVeina
JakenVeina17mo ago
in order to get two computers to talk to each other, they have to know that each other exists you solve that problem by setting up a server that ALWAYS exists
drls10
drls10OP17mo ago
The problem is I know nothing about servers
JakenVeina
JakenVeina17mo ago
at the same IP address, or at least the same URL then you can either have all clients connect to the server, and the server re-sends messages coming in, back out to other clients or you have all clients connect to the server to report themselves as online and get a list of other online clients that they can connect to directly
drls10
drls10OP17mo ago
I dont know how to make server. I dont need to send and recieve a lot of data either
JakenVeina
JakenVeina17mo ago
well, you're gonna have to learn a server, ultimately, is a computer that sits around and listens for incoming network connections or, just incoming network communication, in general
drls10
drls10OP17mo ago
where can i learn?
JakenVeina
JakenVeina17mo ago
your best bet to get started from nothing is probably to read up on, and experiment with, ASP.NET Core which si Microsoft's .NET Framework for building Web Servers what you describe may or may not be suitable with a web server, but it'll teach you the core concepts
drls10
drls10OP17mo ago
yes please
JakenVeina
JakenVeina17mo ago
otherwise, start looking for tutorials or videos or books or whatever, on the topic of networking and client/server applications
drls10
drls10OP17mo ago
can you tell me the basics if possible please?
JakenVeina
JakenVeina17mo ago
no
drls10
drls10OP17mo ago
understood
JakenVeina
JakenVeina17mo ago
I am not in the mood to teach a 100-level college course
drls10
drls10OP17mo ago
okay no problem
JakenVeina
JakenVeina17mo ago
I gave a few basic points above a server is a computer that sits and listens for incoming network connections and then does something when they happen
drls10
drls10OP17mo ago
okay thanks!
JakenVeina
JakenVeina17mo ago
if you need info about like, what TCP/IP is and the OSI Network model, that's more than I can provide here in text
drls10
drls10OP17mo ago
okay thanks again
Pobiega
Pobiega17mo ago
Might wanna look up how IRC works, it sounds like you want something somewhat similar to that.
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server