Sign in to follow this  
  • entries
    557
  • comments
    1237
  • views
    421589

Screw IOCP

Sign in to follow this  
Evil Steve

106 views

Ok, IO Completion ports are driving me batshit insane. I'm going to give up and fall back to a slightly more sane method.

I'll use a bunch of events, and get notification for the sockets. Then I'll have a few worker threads running and handling events. I don't know if that'll work, but it has to be easier than IOCP and probably quite close to as efficient. If it starts to become a problem, I can look at IOCP again later on. This is the second time I've got a pretty much completely implemented IOCP socket class, and had to give up. I'm sure there's something I'm missing.

At the moment, I just want to get the socket code done so I can work on the rest of TEH MMORPG!!1 (I'm calling it a MMORPG, even if it's just a MORPG).


I realised something slightly annoying about setting up my laptop to do coding on the train last night: How do I sync files? I'll have to remember to do it in the morning, and when I get home. It shouldn't be too bad actually, I only tend to do my own coding for part of my lunch break and on the train (soon) during the week. So in theory I could leave files checked out for 5 days, although I'd rather not (The more often I commit, the more versions I have to go back and check on).
Sign in to follow this  


4 Comments


Recommended Comments

With my Powerbook, whenever I plug it into my home LAN, iSync starts up and syncs my code directory with my backup machine.

Too bad you don't own a Mac. [wink]

You could also just store all your code for home use on a 250GB OneTouch drive, and set up the button to launch a script to back up your code. That's what I do for backup; I just plug the drive into my laptop, hit the button, plug it into my desktop, hit the button and my code is all nice and backed up.

Share this comment


Link to comment
You could just use SVN and AnkhSVN plugin for MSVC. Should work fine.

Or, just synchronise your laptop with your desktop/server machine, there's a built-in tool for Windows to do that. Alternatively, you could write a script you start manually to check-in and check-out your code from you development machine.

However, I prefer using SVN, since it's simple as hell. Tho, you'd be best off only committing versions that build, since that doesn't mess up your commit cycle(Imagine having you try and roll-back 5 versions until you have a version that finally builds...)

Toolmaker

Share this comment


Link to comment
I'm using Perforce at the moment (Because it's what we use at work and it's really nice). I think I'll just sync every few days before work (or the evening after). As I said, I'll be doing almost all of my development on my laptop (Except for the ocasional weekend).

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