Here is a good link to get started in network programming
here