Notes on network programming