Network part

Added new functions in the interface and implemented them.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>