General Network Programming