count the bytes we receive/send
[nikiroo-utils.git] / src / be / nikiroo / utils / serial / server / ConnectActionServer.java
index 85b46a2fdd89f594528d166f78e26a7177eb8e2c..60f8db85db4f6f278a9b1f50ef1d41de92b0540e 100644 (file)
@@ -77,6 +77,24 @@ abstract class ConnectActionServer {
                }).start();
        }
 
+       /**
+        * The total amount of bytes received.
+        * 
+        * @return the amount of bytes received
+        */
+       public long getBytesReceived() {
+               return action.getBytesReceived();
+       }
+
+       /**
+        * The total amount of bytes sent.
+        * 
+        * @return the amount of bytes sent
+        */
+       public long getBytesSent() {
+               return action.getBytesSent();
+       }
+
        /**
         * Method that will be called when an action is performed on the server.
         *