some code i use a lot, windows networking, as well as better i/o