C# Client and Server (+XNA)
Uploader Comments (prof89)
All Comments (18)
-
@prof89 Thank you. I think i got it.
-
follow up from last comment ..
- client has a list of "simulated/ghost-clients" (saves position)
- 1 thread for sending input to server continously
- 1 thread for receiving the server messages. Here it updates its position and the ghost-clients positions.
I think is am using UDPServer (C#-class) and Basic threads (easy implementation (bad i guess but it works fine as of now))
-
No other tutorials than "make a chat client in C#".
I can give you the code from this example and point out the relevant parts (networking). But it is NOT good to go for a game yet. There is no handling for errors and such things.
If you still want it send your email in a PM :)
Basic structure otherwise is: - server has got a list of clients (id) - server has 1 thread for sending messages every 1 second (positions in a string) - 1 thread for receiveing messages - continously
May I have this code please?
CharlesVI 3 weeks ago
@CharlesVI
Sure, give me a second
prof89 2 weeks ago
@CharlesVI
Here -- dropbox.com/s/13izs0eft92u4pm -- scroll down and take the .RAR or just browse around
prof89 2 weeks ago
pls give me your code :)
Zer0TAT 1 month ago
@Zer0TAT
Hey, Give me like a day and i'll dig it up.
prof89 1 month ago
respect can i download it anywhere
BennixD3107 5 months ago
@BennixD3107
I'll send you the code ,, i have a "much" better version now which supports much easier data-transfer and it is almost simpler implementation
i will PM you
prof89 5 months ago