unix network programming learning example codes