public short getSocketState() {
        int flag = 0;
        if (socket1 > 0 || socket2 > 0 || socket3 > 0) { // Got empty sockets show msg 
            flag |= SocketFlag.DEFAULT.getValue();
        }
        if (socket1 > 0) {
            flag |= SocketFlag.SOCKET_BOX_1.getValue();
        }
        if (socket1 > 1) {
            flag |= SocketFlag.USED_SOCKET_1.getValue();
        }
        if (socket2 > 0) {
            flag |= SocketFlag.SOCKET_BOX_2.getValue();
        }
        if (socket2 > 1) {
            flag |= SocketFlag.USED_SOCKET_2.getValue();
        }
        if (socket3 > 0) {
            flag |= SocketFlag.SOCKET_BOX_3.getValue();
        }
        if (socket3 > 1) {
            flag |= SocketFlag.USED_SOCKET_3.getValue();
        }
        return (short) flag;
    }