It would help to have a single English line description of what each of these declarations is intended to do. Reading this, I don't yet know what:

a) a stream is (in the context of this conversation)
b) a source is
c) a room is
d) an intern is

and I'm assuming that `sock` => socket but am not 100% sure.