Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    298
  • comments
    1135
  • views
    232214

Happiness through agony -- it works!

Sign in to follow this  
HopeDagger

99 views

Ah, so today was my quasi-annual job review. Got my raise, got my praise. Yay. :)


Networking

This was my night, more or less. Winsock was giving me headaches aplenty, so I retraced my steps back a bit and gave HawkNL another go. Trying not to be too turned off by the website's colour scheme (hehe :P) I bookmarked the documentation and checked out the Delphi examples, which I hadn't spotted the first time. I was pleasantly surprised at what a nice library it is. :)

Long story short -- and I mean a LONG story! -- I learned a whole bunch about the API mostly through experimentation, and one particular obscure bug cost me about 2 hours, whereas I needed to forward ports 1024+MAXPLAYERS in order for a UDP server to receive packets. Fun. :)

So here I am, finally got the testbed I've created for my (fairly) flexible TGameServer and TGameClient classes to rest in whilst I experiment and add to them. Right now the client can just connect and toss a user-inputted string or a random number to the server, but the functionality is there. Tomorrow I'll work on grouping connected sockets to a dynamic list of players and using HawkNL's group system to poll sockets quickly and sort received packets. I don't think I'll have reliable UDP implemented for v0.02, so the first online game test might be a little whonky, but it'll definitely be in for v0.03.

All in all, I went through a lot of dismay and worry that all would be lost, but now I've come out on top and have squashed the once-mighty bugs. So yes, Mr. Donahue, I had a nice day. :)
Sign in to follow this  


2 Comments


Recommended Comments

Keep up the good work! Sounds like you are getting it all under control. I have also update my journal by YOUR request. [wink]

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!