/TcpBsonServer

Java/Netty based TCP multi-client server transceiving BSON data

Primary LanguageJava

Required

  • bson4jackson
  • jackson-core
  • jackson-annotations
  • jackson-databind
  • netty 4.x
  • java 1.7+

HowTo

  • Download and install all required libs, take care that they are in your CLASSPATH
  • Define the port you want to use in config.props
  • Create client commands by inherit from BaseClientCmd (see ClientCmdMessageException) and create equal commands on client
  • Create server commands by inherit from BaseServerCmd (see ServerCmdLogout) and create equal commands on client
  • Every client-server connection is associated with a Client and CommandManager object. The CommandManager is directly connected to the Netty layer and handles incoming/outgoing commands, while Client represents the connected client
  • Run with java TcpBsonServer config.props