Yes, it should give you a blank screen because wait(1000) does nothing. But maybe something inside "anet.h" calls the sys_exit command immediately.

There is a whole workshop about multiplayer in the tutorial, so why don't you use that first for getting started?