New interfaces for network classes in simulator defined.

Some changes appears after initial look at TCP implementation.
Merge branch 'protobuf' of github.com:TheDZhon/varva into protobuf