Fix warnings in Sockets Provider (Issue #427)

Signed-off-by: Jithin Jose <jithin.jose@intel.com>