Advertisement
admin232

Untitled

Jun 21st, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.36 KB | None | 0 0
  1. private def resolveCommand(address:Int, id: Int):command.Command = id match {
  2.     case IngoingCommands.connect => {
  3.       new ConnectCommand(address)
  4.     }
  5.     case x:_ => {
  6.       Core.log(LogLevel.Warning, "PBUS received unknown command ("+x+")")
  7.       new AnonymousCommand(address, 0, (args:List[Short])=>{new ResponseError(Errors.unknownCommand)})
  8.     }
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement