C# Client and Server (+XNA)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
908 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 24, 2011

Note: It is not lagging - it is simply the server that sends the messages on 1 second intervals. The clients sends random movement-input to the server every 2 second.

100 clients
1 visual client
1 server
Changed to XNA for better rendering.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (prof89)

  • May I have this code please?

  • @CharlesVI

    Sure, give me a second

  • @CharlesVI

    Here -- dropbox.com/s/13izs0eft92u4pm -- scroll down and take the .RAR or just browse around

  • pls give me your code :)

  • @Zer0TAT

    Hey, Give me like a day and i'll dig it up.

  • respect can i download it anywhere

  • @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

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • @prof89 Thank you. I think i got it.

  • @deanobajeo

    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))

  • @deanobajeo

    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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more