Skip to content
  • kennylbj's avatar
    92efa3c9
    Add UptimeServer and adjust UptimeClient's code style. · 92efa3c9
    kennylbj authored
    Motivation:
    
    Uptime example is lack of server.
    UptimeClient's code style is a little bit different from others, which make reader feel confused.
    We don't need to create a new Bootstrap instance each time client reconnect to server.
    
    Modification:
    
    Add UptimeServer and UptimeServerHandler which simply accept all connection and discard all message.
    Change UptimeClient's code style.
    Share a single Bootstrap instance.
    
    Result:
    
    Uptime server support.
    Consistent code style.
    Single Bootstrap for all reconnection.
    92efa3c9
    Add UptimeServer and adjust UptimeClient's code style.
    kennylbj authored
    Motivation:
    
    Uptime example is lack of server.
    UptimeClient's code style is a little bit different from others, which make reader feel confused.
    We don't need to create a new Bootstrap instance each time client reconnect to server.
    
    Modification:
    
    Add UptimeServer and UptimeServerHandler which simply accept all connection and discard all message.
    Change UptimeClient's code style.
    Share a single Bootstrap instance.
    
    Result:
    
    Uptime server support.
    Consistent code style.
    Single Bootstrap for all reconnection.
Loading