   videoReceiveServer.name = 'VideoData'
   videoReceiveServer.on 'packet', (buf) ->
     onReceiveVideoBuffer buf[3..]
+else
+  throw new Error "unknown receiverType in config: #{config.receiverType}"
 
 if config.receiverType is 'unix'
   videoReceiveServer.listen config.videoReceiverPath, ->

      rtmpServer.startStream timeForAudioRTPZero
    else
      console.log "[audioControlServer] unknown data: #{buf.length} bytes"

if config.receiverType is 'unix'
  audioControlServer.listen config.audioControlPath, ->

      rtmpServer.startStream timeForVideoRTPZero
    else
      console.log "[videoControlServer] unknown data: #{buf.length} bytes"
else
  throw new Error "unknown receiverType in config: #{config.receiverType}"

if config.receiverType is 'unix'
  videoControlServer.listen config.videoControlPath, ->
