Added warnings.
Added receiving socket (issue #1).